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

Unified Diff: chrome/browser/extensions/api/web_request/web_request_api_unittest.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/extensions/api/web_request/web_request_api_unittest.cc
diff --git a/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc b/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc
index c2bc42232ef2be993432c1acef1b18c9f0c62a52..c263ce7e0a34ec51ab2eb89f4f90cee03aa97090 100644
--- a/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc
+++ b/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc
@@ -465,8 +465,8 @@ TEST_F(ExtensionWebRequestTest, SimulateChancelWhileBlocked) {
// Extension response for OnErrorOccurred: Terminate the message loop.
ipc_sender_.PushTask(
base::Bind(&base::MessageLoop::PostTask,
- base::Unretained(base::MessageLoop::current()),
- FROM_HERE, base::MessageLoop::QuitClosure()));
+ base::Unretained(base::MessageLoop::current()), FROM_HERE,
+ base::MessageLoop::QuitWhenIdleClosure()));
request->Start();
// request->Start() will have submitted OnBeforeRequest by the time we cancel.

Powered by Google App Engine
This is Rietveld 408576698