DescriptionRemove calls to MessageLoop(ForUI|ForIO)::Run/RunUntilIdle.
This CL makes the following replacements:
1.
base::MessageLoopForUIorIO::current()->Run()/RunUntilIdle();
becomes
// This ASSERT_TRUE replaces the DCHECK in
// MessageLoopForUIorIO::current().
ASSERT_TRUE(base::MessageLoopForUIorIO::IsCurrent());
base::RunLoop().Run()/RunUntilIdle();
2.
message_loop_for_ui_or_io.Run()/RunUntilIdle();
becomes
// The ASSERT_TRUE is present only if it isn't obvious that
// the current thread runs a MessageLoopForUIorIO (e.g.
// because it isn't instantiated in the current file).
ASSERT_TRUE(base::MessageLoopForUIorIO::IsCurrent());
base::RunLoop().Run()/RunUntilIdle();
BUG=616447
Committed: https://crrev.com/c5e45f6b0a71c2a174bea1219f9a6709191fde50
Cr-Commit-Position: refs/heads/master@{#420342}
Patch Set 1 #Patch Set 2 : self-review #Patch Set 3 : self-review #
Total comments: 4
Patch Set 4 : CR gab/groby #8-9 #
Total comments: 5
Patch Set 5 : CR groby #15 EXPECT -> ASSERT #Patch Set 6 : fix build error #
Messages
Total messages: 32 (17 generated)
|