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

Unified Diff: chrome/browser/history/history_browsertest.cc

Issue 387923002: Make HistoryDBTask not refcounted, and ensure it's destroyed on its origin thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 5 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/browser/history/history_browsertest.cc
diff --git a/chrome/browser/history/history_browsertest.cc b/chrome/browser/history/history_browsertest.cc
index 49e813cc922f2001238e9d907b5b498c1842c1cb..fdf10ea3f9dd6138ab62e36d53d0e915c7470011 100644
--- a/chrome/browser/history/history_browsertest.cc
+++ b/chrome/browser/history/history_browsertest.cc
@@ -87,11 +87,11 @@ class HistoryBrowserTest : public InProcessBrowserTest {
void WaitForHistoryBackendToRun() {
base::CancelableTaskTracker task_tracker;
- scoped_refptr<history::HistoryDBTask> task(new WaitForHistoryTask());
+ history::HistoryDBTask* task = new WaitForHistoryTask();
HistoryService* history =
HistoryServiceFactory::GetForProfile(GetProfile(),
Profile::EXPLICIT_ACCESS);
- history->HistoryService::ScheduleDBTask(task.get(), &task_tracker);
+ history->HistoryService::ScheduleDBTask(task, &task_tracker);
content::RunMessageLoop();
}

Powered by Google App Engine
This is Rietveld 408576698