Index: chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc |
diff --git a/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc b/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc |
index 319ac8c33f49affbbf38b10d1df5f46f389b64b1..e7ef69eeda1ac6f71f5143196499bb2519cfb2bc 100644 |
--- a/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc |
+++ b/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc |
@@ -230,7 +230,7 @@ CloudPrintURLFetcherBasicTest::HandleRawResponse( |
if (handle_raw_response_) { |
// If the current message loop is not the IO loop, it will be shut down when |
// the main loop returns and this thread subsequently goes out of scope. |
- io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); |
+ io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); |
return CloudPrintURLFetcher::STOP_PROCESSING; |
} |
return CloudPrintURLFetcher::CONTINUE_PROCESSING; |
@@ -244,7 +244,7 @@ CloudPrintURLFetcherBasicTest::HandleRawData( |
// We should never get here if we returned true in HandleRawResponse |
EXPECT_FALSE(handle_raw_response_); |
if (handle_raw_data_) { |
- io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); |
+ io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); |
return CloudPrintURLFetcher::STOP_PROCESSING; |
} |
return CloudPrintURLFetcher::CONTINUE_PROCESSING; |
@@ -259,7 +259,7 @@ CloudPrintURLFetcherBasicTest::HandleJSONData( |
// We should never get here if we returned true in one of the above methods. |
EXPECT_FALSE(handle_raw_response_); |
EXPECT_FALSE(handle_raw_data_); |
- io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); |
+ io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); |
return CloudPrintURLFetcher::STOP_PROCESSING; |
} |
@@ -279,7 +279,7 @@ CloudPrintURLFetcherOverloadTest::HandleRawData( |
// We have already sent 20 requests continuously. And we expect that |
// it takes more than 1 second due to the overload protection settings. |
EXPECT_TRUE(Time::Now() - start_time_ >= one_second); |
- io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); |
+ io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); |
} |
return CloudPrintURLFetcher::STOP_PROCESSING; |
} |
@@ -298,7 +298,7 @@ CloudPrintURLFetcherRetryBackoffTest::HandleRawData( |
void CloudPrintURLFetcherRetryBackoffTest::OnRequestGiveUp() { |
// It takes more than 200 ms to finish all 11 requests. |
EXPECT_TRUE(Time::Now() - start_time_ >= TimeDelta::FromMilliseconds(200)); |
- io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); |
+ io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); |
} |
// http://code.google.com/p/chromium/issues/detail?id=60426 |