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

Unified Diff: chrome/browser/visitedlink/visitedlink_unittest.cc

Issue 8892023: Eliminated the last few uses of MessageLoop::QuitTask in chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more... 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
« no previous file with comments | « chrome/browser/visitedlink/visitedlink_master.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/visitedlink/visitedlink_unittest.cc
diff --git a/chrome/browser/visitedlink/visitedlink_unittest.cc b/chrome/browser/visitedlink/visitedlink_unittest.cc
index 487c73d32e5b38da9a655305b45251d76b3e99fc..04728a68221b1946848dff168b92104a12584570 100644
--- a/chrome/browser/visitedlink/visitedlink_unittest.cc
+++ b/chrome/browser/visitedlink/visitedlink_unittest.cc
@@ -106,7 +106,7 @@ class VisitedLinkTest : public testing::Test {
master_.reset(NULL);
if (history_service_.get()) {
- history_service_->SetOnBackendDestroyTask(new MessageLoop::QuitTask);
+ history_service_->SetOnBackendDestroyTask(MessageLoop::QuitClosure());
history_service_->Cleanup();
history_service_ = NULL;
@@ -402,7 +402,7 @@ TEST_F(VisitedLinkTest, Rebuild) {
// complete before we set the task because the rebuild completion message
// is posted to the message loop; until we Run() it, rebuild can not
// complete.
- master_->set_rebuild_complete_task(new MessageLoop::QuitTask);
+ master_->set_rebuild_complete_task(MessageLoop::QuitClosure());
MessageLoop::current()->Run();
// Test that all URLs were written to the database properly.
@@ -423,7 +423,7 @@ TEST_F(VisitedLinkTest, BigImport) {
master_->AddURL(TestURL(i));
// Wait for the rebuild to complete.
- master_->set_rebuild_complete_task(new MessageLoop::QuitTask);
+ master_->set_rebuild_complete_task(MessageLoop::QuitClosure());
MessageLoop::current()->Run();
// Ensure that the right number of URLs are present
@@ -591,7 +591,7 @@ class VisitedLinkEventsTest : public ChromeRenderViewHostTestHarness {
void WaitForCoalescense() {
// Let the timer fire.
MessageLoop::current()->PostDelayedTask(FROM_HERE,
- new MessageLoop::QuitTask(), 110);
+ MessageLoop::QuitClosure(), 110);
MessageLoop::current()->Run();
}
« no previous file with comments | « chrome/browser/visitedlink/visitedlink_master.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698