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

Unified Diff: components/sync_driver/non_ui_data_type_controller.cc

Issue 1310553005: [Sync] Replace ProfileSyncComponentsFactory with SyncClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Really fix GN Created 5 years, 4 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 71285ca17b92b12e1fc3703cfbedc9c78b3d1aac..ac180f613a4725d38d6997caf0860da69f371fa1 100644
--- a/components/sync_driver/non_ui_data_type_controller.cc
+++ b/components/sync_driver/non_ui_data_type_controller.cc
@@ -25,9 +25,9 @@ NonUIDataTypeController::CreateSharedChangeProcessor() {
NonUIDataTypeController::NonUIDataTypeController(
scoped_refptr<base::SingleThreadTaskRunner> ui_thread,
const base::Closure& error_callback,
- SyncApiComponentFactory* sync_factory)
+ SyncClient* sync_client)
: DataTypeController(ui_thread, error_callback),
- sync_factory_(sync_factory),
+ sync_client_(sync_client),
state_(NOT_RUNNING),
ui_thread_(ui_thread) {
}
@@ -173,7 +173,7 @@ void NonUIDataTypeController::OnSingleDataTypeUnrecoverableError(
NonUIDataTypeController::NonUIDataTypeController()
: DataTypeController(base::ThreadTaskRunnerHandle::Get(), base::Closure()),
- sync_factory_(NULL) {}
+ sync_client_(NULL) {}
NonUIDataTypeController::~NonUIDataTypeController() {}
@@ -306,7 +306,7 @@ void NonUIDataTypeController::
// point on are through it.
GenericChangeProcessorFactory factory;
local_service_ = shared_change_processor->Connect(
- sync_factory_,
+ sync_client_,
&factory,
user_share(),
this,
« no previous file with comments | « components/sync_driver/non_ui_data_type_controller.h ('k') | components/sync_driver/non_ui_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698