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

Unified Diff: components/sync_driver/non_ui_data_type_controller.cc

Issue 1907683003: Convert //components/sync_driver from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix, address feedback Created 4 years, 8 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: components/sync_driver/non_ui_data_type_controller.cc
diff --git a/components/sync_driver/non_ui_data_type_controller.cc b/components/sync_driver/non_ui_data_type_controller.cc
index abdb936d743d651cb2f5ce0cd0b38bf687b4ad80..484a149f0d77fa765597280d1fdff93468815d1b 100644
--- a/components/sync_driver/non_ui_data_type_controller.cc
+++ b/components/sync_driver/non_ui_data_type_controller.cc
@@ -380,9 +380,9 @@ void NonUIDataTypeController::
// Passes a reference to |shared_change_processor|.
local_merge_result = local_service_->MergeDataAndStartSyncing(
type(), initial_sync_data,
- scoped_ptr<syncer::SyncChangeProcessor>(
+ std::unique_ptr<syncer::SyncChangeProcessor>(
new SharedChangeProcessorRef(shared_change_processor)),
- scoped_ptr<syncer::SyncErrorFactory>(
+ std::unique_ptr<syncer::SyncErrorFactory>(
new SharedChangeProcessorRef(shared_change_processor)));
RecordAssociationTime(base::TimeTicks::Now() - start_time);
if (local_merge_result.error().IsSet()) {

Powered by Google App Engine
This is Rietveld 408576698