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

Unified Diff: chrome/browser/sync/test/integration/bookmarks_helper.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
Index: chrome/browser/sync/test/integration/bookmarks_helper.cc
diff --git a/chrome/browser/sync/test/integration/bookmarks_helper.cc b/chrome/browser/sync/test/integration/bookmarks_helper.cc
index 46d51b5180a8014bf8402de80ce7b4ada7b867b4..2cfb377a2fec72db46e286d3fd4f59ca084ea096 100644
--- a/chrome/browser/sync/test/integration/bookmarks_helper.cc
+++ b/chrome/browser/sync/test/integration/bookmarks_helper.cc
@@ -268,7 +268,10 @@ void WaitForHistoryToProcessPendingTasks() {
HistoryServiceFactory::GetForProfileWithoutCreating(profile);
base::WaitableEvent done(false, false);
base::CancelableTaskTracker task_tracker;
- history_service->ScheduleDBTask(new HistoryEmptyTask(&done), &task_tracker);
+ history_service->ScheduleDBTask(
+ scoped_ptr<history::HistoryDBTask>(
+ new HistoryEmptyTask(&done)),
+ &task_tracker);
done.Wait();
}
// Wait such that any notifications broadcast from one of the history threads

Powered by Google App Engine
This is Rietveld 408576698