Commit af007379 authored by Gabriel Charette's avatar Gabriel Charette Committed by Commit Bot

Migrate MessageLoop::ScopedNestableTaskAllower to RunLoop::Type::kNestableTasksAllowed in /base

This pass focuses on ML::SNTA in same scope as an anonymous RunLoop().RunUntilIdle()
Scripted via a small tweak of https://bugs.chromium.org/p/chromium/issues/detail?id=781352#c1
which focused on RunLoops with a variable name.

The script should have replaced a MessageLoop::ScopedNestableTaskAllower
in the same scope as a RunLoop with a RunLoop of
Type::kNestableTasksAllowed. If there was a comment above the
MessageLoop::ScopedNestableTaskAllower, it should have been moved
alongside the augmented RunLoop.

Includes should have been stripped if the was the last usage of message_loop.h
in that file.

Please CQ if LGTY

This CL was uploaded by git cl split.

R=thakis@chromium.org

Bug: 781352
Change-Id: I0cb8cd0bbe6161bc706a5fc81d73c1d41ddcc775
Reviewed-on: https://chromium-review.googlesource.com/995974
Commit-Queue: Gabriel Charette <gab@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548141}
parent cd1f4d36
...@@ -1257,10 +1257,7 @@ namespace { ...@@ -1257,10 +1257,7 @@ namespace {
void FuncThatPumps(TaskList* order, int cookie) { void FuncThatPumps(TaskList* order, int cookie) {
order->RecordStart(PUMPS, cookie); order->RecordStart(PUMPS, cookie);
{ RunLoop(RunLoop::Type::kNestableTasksAllowed).RunUntilIdle();
MessageLoop::ScopedNestableTaskAllower allow(MessageLoop::current());
RunLoop().RunUntilIdle();
}
order->RecordEnd(PUMPS, cookie); order->RecordEnd(PUMPS, cookie);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment