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

Unified Diff: net/url_request/url_request_unittest.h

Issue 6329019: Use QuitTask instead of Quit() to signal request completion. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_unittest.h
diff --git a/net/url_request/url_request_unittest.h b/net/url_request/url_request_unittest.h
index f1330154a317ed00b7bc716f8b707bb31e11b597..2e12d20a4f85b73661c1d54241dcc6a37f97b8c0 100644
--- a/net/url_request/url_request_unittest.h
+++ b/net/url_request/url_request_unittest.h
@@ -290,7 +290,7 @@ class TestDelegate : public net::URLRequest::Delegate {
virtual void OnResponseCompleted(net::URLRequest* request) {
if (quit_on_complete_)
- MessageLoop::current()->Quit();
+ MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
}
void OnAuthRequired(net::URLRequest* request,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698