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

Unified Diff: chrome/browser/history/url_index_private_data.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/history/url_index_private_data.cc
diff --git a/chrome/browser/history/url_index_private_data.cc b/chrome/browser/history/url_index_private_data.cc
index 722db58d6ea60e733ca92e3a98be54993dda8e83..3a38810c49cedbf3e90e40abb9d00a0070afcadd 100644
--- a/chrome/browser/history/url_index_private_data.cc
+++ b/chrome/browser/history/url_index_private_data.cc
@@ -366,7 +366,8 @@ void URLIndexPrivateData::ScheduleUpdateRecentVisits(
URLID url_id,
base::CancelableTaskTracker* tracker) {
history_service->ScheduleDBTask(
- new UpdateRecentVisitsFromHistoryDBTask(this, url_id), tracker);
+ scoped_ptr<history::HistoryDBTask>(
+ new UpdateRecentVisitsFromHistoryDBTask(this, url_id)), tracker);
}
// Helper functor for DeleteURL.
« no previous file with comments | « chrome/browser/history/top_sites_impl_unittest.cc ('k') | chrome/browser/prerender/prerender_local_predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698