summaryrefslogtreecommitdiffstats
path: root/content/common
diff options
context:
space:
mode:
authordcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-10 00:22:59 +0000
committerdcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-10 00:22:59 +0000
commitd111e93688a8531eb6f3f48592dfbcb88a9a4fee (patch)
treea4724635db62762122445e0a18731e37e0957708 /content/common
parent2350f60970d2f43c5997fa896cb5f1d170d5d4f1 (diff)
downloadchromium_src-d111e93688a8531eb6f3f48592dfbcb88a9a4fee.zip
chromium_src-d111e93688a8531eb6f3f48592dfbcb88a9a4fee.tar.gz
chromium_src-d111e93688a8531eb6f3f48592dfbcb88a9a4fee.tar.bz2
Removing MessageLoop::QuitTask() from content/
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/8872030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113894 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common')
-rw-r--r--content/common/net/url_fetcher_impl_unittest.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/content/common/net/url_fetcher_impl_unittest.cc b/content/common/net/url_fetcher_impl_unittest.cc
index 709b54b..aae975e 100644
--- a/content/common/net/url_fetcher_impl_unittest.cc
+++ b/content/common/net/url_fetcher_impl_unittest.cc
@@ -124,7 +124,7 @@ void URLFetcherTest::OnURLFetchComplete(const content::URLFetcher* source) {
// because the destructor won't necessarily run on the
// same thread that CreateFetcher() did.
- io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
// 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.
}
@@ -206,7 +206,7 @@ class CancelTestURLRequestContext : public TestURLRequestContext {
virtual ~CancelTestURLRequestContext() {
// The d'tor should execute in the IO thread. Post the quit task to the
// current thread.
- MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
}
};
@@ -397,7 +397,7 @@ void URLFetcherProtectTest::OnURLFetchComplete(
EXPECT_TRUE(source->GetResponseAsString(&data));
EXPECT_FALSE(data.empty());
delete fetcher_;
- io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
} else {
// Now running Overload test.
static int count = 0;
@@ -444,7 +444,7 @@ void URLFetcherProtectTestPassedThrough::OnURLFetchComplete(
}
delete fetcher_;
- io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
}
@@ -474,7 +474,7 @@ void URLFetcherBadHTTPSTest::OnURLFetchComplete(
// The rest is the same as URLFetcherTest::OnURLFetchComplete.
delete fetcher_;
- io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
}
void URLFetcherCancelTest::CreateFetcher(const GURL& url) {
@@ -495,7 +495,7 @@ void URLFetcherCancelTest::OnURLFetchComplete(
// We should have cancelled the request before completion.
ADD_FAILURE();
delete fetcher_;
- io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
}
void URLFetcherCancelTest::CancelRequest() {
@@ -522,7 +522,7 @@ void URLFetcherMultipleAttemptTest::OnURLFetchComplete(
// because the destructor won't necessarily run on the
// same thread that CreateFetcher() did.
- io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
// 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.
}
@@ -540,7 +540,7 @@ void URLFetcherTempFileTest::OnURLFetchComplete(
delete fetcher_;
- io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
}
TEST_F(URLFetcherTest, SameThreadsTest) {