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

Unified Diff: chromeos/login/auth/mock_url_fetchers.cc

Issue 1396083003: Don't use base::MessageLoop::{Quit,QuitClosure} in ash/, chromeos/, device/ (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
« no previous file with comments | « chromeos/login/auth/mock_auth_status_consumer.cc ('k') | chromeos/process_proxy/process_proxy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/auth/mock_url_fetchers.cc
diff --git a/chromeos/login/auth/mock_url_fetchers.cc b/chromeos/login/auth/mock_url_fetchers.cc
index 0b4879bc79fee96a402c73ac5c6fb927472fba85..48a5543fa413ea6ae50ba7f9c2a489b9fcea9c67 100644
--- a/chromeos/login/auth/mock_url_fetchers.cc
+++ b/chromeos/login/auth/mock_url_fetchers.cc
@@ -40,7 +40,9 @@ void ExpectCanceledFetcher::Start() {
void ExpectCanceledFetcher::CompleteFetch() {
ADD_FAILURE() << "Fetch completed in ExpectCanceledFetcher!";
- base::MessageLoop::current()->Quit(); // Allow exiting even if we mess up.
+
+ // Allow exiting even if we mess up.
+ base::MessageLoop::current()->QuitWhenIdle();
}
GotCanceledFetcher::GotCanceledFetcher(
« no previous file with comments | « chromeos/login/auth/mock_auth_status_consumer.cc ('k') | chromeos/process_proxy/process_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698