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

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: 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
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 3c6fa906caba83ceda17bff1c0f3fcfec4aac1df..405ad07efd14c90324e2f5f048f24a23a2c8402e 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -852,8 +852,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();
}

Powered by Google App Engine
This is Rietveld 408576698