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

Unified Diff: chrome/browser/history/history_unittest.cc

Issue 8873032: Removing MessageLoop::QuitTask() from chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/browser/history/history_unittest.cc
diff --git a/chrome/browser/history/history_unittest.cc b/chrome/browser/history/history_unittest.cc
index ceb960866bfc698c1296deb9e2a66ee1573de0ba..8e23b28522e41c26e638ff2a2d20df04e71228b9 100644
--- a/chrome/browser/history/history_unittest.cc
+++ b/chrome/browser/history/history_unittest.cc
@@ -168,7 +168,7 @@ class HistoryTest : public testing::Test {
// Make sure we don't have any event pending that could disrupt the next
// test.
- MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask);
+ MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure);
MessageLoop::current()->Run();
}
@@ -176,7 +176,7 @@ class HistoryTest : public testing::Test {
DCHECK(history_service_.get());
history_service_->NotifyRenderProcessHostDestruction(0);
- history_service_->SetOnBackendDestroyTask(new MessageLoop::QuitTask);
+ history_service_->SetOnBackendDestroyTask(MessageLoop::QuitClosure);
history_service_->Cleanup();
history_service_ = NULL;

Powered by Google App Engine
This is Rietveld 408576698