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; |