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

Unified Diff: net/url_request/url_request_test_util.cc

Issue 8879031: Removing MessageLoop::QuitTask() from net/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 9 years 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 | « net/tools/dump_cache/upgrade.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_test_util.cc
diff --git a/net/url_request/url_request_test_util.cc b/net/url_request/url_request_test_util.cc
index 0e822f6b7c80541176ffce697d22b80b908dd53e..98da1805bef7a8cef5b78a0abb3faa75269e5a5f 100644
--- a/net/url_request/url_request_test_util.cc
+++ b/net/url_request/url_request_test_util.cc
@@ -187,7 +187,7 @@ void TestDelegate::OnReceivedRedirect(net::URLRequest* request,
received_redirect_count_++;
if (quit_on_redirect_) {
*defer_redirect = true;
- MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
} else if (cancel_in_rr_) {
request->Cancel();
}
@@ -311,7 +311,7 @@ void TestDelegate::OnReadCompleted(net::URLRequest* request, int bytes_read) {
void TestDelegate::OnResponseCompleted(net::URLRequest* request) {
if (quit_on_complete_)
- MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
}
TestNetworkDelegate::TestNetworkDelegate()
« no previous file with comments | « net/tools/dump_cache/upgrade.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698