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

Unified Diff: trunk/src/chrome/browser/sync/glue/typed_url_data_type_controller.cc

Issue 416543006: Revert 284958 "Make HistoryDBTask not refcounted, and ensure it'..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/chrome/browser/sync/glue/typed_url_data_type_controller.cc
===================================================================
--- trunk/src/chrome/browser/sync/glue/typed_url_data_type_controller.cc (revision 285001)
+++ trunk/src/chrome/browser/sync/glue/typed_url_data_type_controller.cc (working copy)
@@ -138,10 +138,8 @@
HistoryService* history = HistoryServiceFactory::GetForProfile(
profile(), Profile::IMPLICIT_ACCESS);
if (history) {
- history->ScheduleDBTask(
- scoped_ptr<history::HistoryDBTask>(
- new RunTaskOnHistoryThread(task, this)),
- &task_tracker_);
+ history->ScheduleDBTask(new RunTaskOnHistoryThread(task, this),
+ &task_tracker_);
return true;
} else {
// History must be disabled - don't start.

Powered by Google App Engine
This is Rietveld 408576698