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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 352913002: Port HistoryService::ScheduleDBTask to CancelableTaskTracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix lifetime of base::CancelableTaskTracker for HistoryModelWorker Created 6 years, 6 months 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/ui/sync/profile_signin_confirmation_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index f54fc3540ef1c8c73fb617cf22c9895bb996bf16..269c8d1a6094ea86090bb22d63a0478a0def1908 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -846,8 +846,8 @@ void TestingProfile::BlockUntilHistoryProcessesPendingRequests() {
DCHECK(history_service);
DCHECK(base::MessageLoop::current());
- CancelableRequestConsumer consumer;
- history_service->ScheduleDBTask(new QuittingHistoryDBTask(), &consumer);
+ base::CancelableTaskTracker tracker;
+ history_service->ScheduleDBTask(new QuittingHistoryDBTask(), &tracker);
base::MessageLoop::current()->Run();
}
« no previous file with comments | « chrome/browser/ui/sync/profile_signin_confirmation_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698