Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4183)

Unified Diff: chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc

Issue 1395103003: Don't use base::MessageLoop::{Quit,QuitClosure} in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
index f08f5fe72a0dc71174b99c818a6aa38b4f20126d..17e53b87900434aaa5835ce04cf40000d444cd65 100644
--- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
@@ -289,7 +289,7 @@ class TestMessageLoopCondition {
void Signal() {
signaled_ = true;
if (waiting_)
- base::MessageLoop::current()->Quit();
+ base::MessageLoop::current()->QuitWhenIdle();
}
// Pause execution and recursively run the message loop until |Signal()| is
@@ -437,9 +437,9 @@ class LocalDiscoveryUITest : public WebUIBrowserTest {
}
void RunFor(base::TimeDelta time_period) {
- base::CancelableCallback<void()> callback(base::Bind(
- &base::MessageLoop::Quit, base::Unretained(
- base::MessageLoop::current())));
+ base::CancelableCallback<void()> callback(
+ base::Bind(&base::MessageLoop::QuitWhenIdle,
+ base::Unretained(base::MessageLoop::current())));
base::MessageLoop::current()->task_runner()->PostDelayedTask(
FROM_HERE, callback.callback(), time_period);
« no previous file with comments | « chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc ('k') | chrome/browser/ui/webui/web_ui_test_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698