diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-10 00:28:17 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-10 00:28:17 +0000 |
commit | a778709ffdb086fd48618fe3a61bdbb4ceba8562 (patch) | |
tree | 6092ac244ffd1f10723f3bfacb7e4282750d6ecc /chrome/service | |
parent | 0f1388e5dac315f5f2057df49ba0ba1338bc3143 (diff) | |
download | chromium_src-a778709ffdb086fd48618fe3a61bdbb4ceba8562.zip chromium_src-a778709ffdb086fd48618fe3a61bdbb4ceba8562.tar.gz chromium_src-a778709ffdb086fd48618fe3a61bdbb4ceba8562.tar.bz2 |
Removing MessageLoop::QuitTask() from chrome/
base/task.h is going away and being replaced by base/bind.h and base/callback.h.
This CL was automatically generated by sed.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8873032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113896 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service')
-rw-r--r-- | chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc | 10 | ||||
-rw-r--r-- | chrome/service/service_process.cc | 2 |
2 files changed, 6 insertions, 6 deletions
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 319ac8c..e7ef69e 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 diff --git a/chrome/service/service_process.cc b/chrome/service/service_process.cc index a7ecabc..4bd18a5 100644 --- a/chrome/service/service_process.cc +++ b/chrome/service/service_process.cc @@ -258,7 +258,7 @@ void ServiceProcess::Shutdown() { } void ServiceProcess::Terminate() { - main_message_loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + main_message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } bool ServiceProcess::HandleClientDisconnect() { |