Skip to content

Commit

Permalink
Improve the debugging output for invalid states in BrowsingDataCounter
Browse files Browse the repository at this point in the history
This is needed to debug a NOTREACHED() hit in crbug.com/1381078.

Bug: 1381078
Change-Id: Ib880fe9c06d76f1f5beaa52a07c25764add3936a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4020666
Reviewed-by: Christian Dullweber <dullweber@chromium.org>
Commit-Queue: Martin Šrámek <msramek@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1070245}
  • Loading branch information
msramek authored and Chromium LUCI CQ committed Nov 11, 2022
1 parent 4cdf90a commit 6f35020
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,11 @@ void BrowsingDataCounter::ReportResult(std::unique_ptr<Result> result) {
staged_result_ = std::move(result);
return;
case State::IDLE:
NOTREACHED() << "State::IDLE";
return;
case State::REPORT_STAGED_RESULT:
NOTREACHED();
NOTREACHED() << "State::REPORT_STAGED_RESULT";
return;
}
}

Expand Down

0 comments on commit 6f35020

Please sign in to comment.