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

Unified Diff: chrome/browser/history/history_browsertest.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/history/history_backend.cc ('k') | chrome/browser/history/history_marshaling.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_browsertest.cc
diff --git a/chrome/browser/history/history_browsertest.cc b/chrome/browser/history/history_browsertest.cc
index 507ec291ba6cb68122ee0820f6fef12f50eafa8f..49e813cc922f2001238e9d907b5b498c1842c1cb 100644
--- a/chrome/browser/history/history_browsertest.cc
+++ b/chrome/browser/history/history_browsertest.cc
@@ -86,12 +86,12 @@ class HistoryBrowserTest : public InProcessBrowserTest {
}
void WaitForHistoryBackendToRun() {
- CancelableRequestConsumerTSimple<int> request_consumer;
+ base::CancelableTaskTracker task_tracker;
scoped_refptr<history::HistoryDBTask> task(new WaitForHistoryTask());
HistoryService* history =
HistoryServiceFactory::GetForProfile(GetProfile(),
Profile::EXPLICIT_ACCESS);
- history->HistoryService::ScheduleDBTask(task.get(), &request_consumer);
+ history->HistoryService::ScheduleDBTask(task.get(), &task_tracker);
content::RunMessageLoop();
}
« no previous file with comments | « chrome/browser/history/history_backend.cc ('k') | chrome/browser/history/history_marshaling.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698