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

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: revert unnecessary changes 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
« no previous file with comments | « chrome/browser/history/history_backend.cc ('k') | chrome/browser/history/history_db_task.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 49e813cc922f2001238e9d907b5b498c1842c1cb..e6b6f7dccd67f63c6af97e14fdf504fe50959955 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());
+ scoped_ptr<history::HistoryDBTask> task(new WaitForHistoryTask());
HistoryService* history =
HistoryServiceFactory::GetForProfile(GetProfile(),
Profile::EXPLICIT_ACCESS);
- history->HistoryService::ScheduleDBTask(task.get(), &task_tracker);
+ history->HistoryService::ScheduleDBTask(task.Pass(), &task_tracker);
content::RunMessageLoop();
}
« no previous file with comments | « chrome/browser/history/history_backend.cc ('k') | chrome/browser/history/history_db_task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698