Skip to content

Commit

Permalink
[jank] Fix is_nested initialization for ThreadController active
Browse files Browse the repository at this point in the history
Bug: 1312179
Change-Id: I46631f84b0f9b376de8ac74951e37ebf08a9bd57
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3568942
Reviewed-by: Francois Pierre Doray <fdoray@chromium.org>
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Cr-Commit-Position: refs/heads/main@{#988538}
  • Loading branch information
Etienne Pierre-doray authored and Chromium LUCI CQ committed Apr 4, 2022
1 parent 5fa8aa5 commit 6e61aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/task/sequence_manager/thread_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ThreadController::RunLevelTracker::~RunLevelTracker() {
}

void ThreadController::RunLevelTracker::OnRunLoopStarted(State initial_state) {
run_levels_.emplace(initial_state, run_levels_.empty());
run_levels_.emplace(initial_state, !run_levels_.empty());
}

void ThreadController::RunLevelTracker::OnRunLoopEnded() {
Expand Down

0 comments on commit 6e61aa6

Please sign in to comment.