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

Unified Diff: components/sync/driver/ui_data_type_controller.cc

Issue 2276943006: [USS] Move GetAllNodes from backend to controller (Closed)
Patch Set: Created 4 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/ui_data_type_controller.cc
diff --git a/components/sync/driver/ui_data_type_controller.cc b/components/sync/driver/ui_data_type_controller.cc
index abc3430b0cc490fae5dff3f8151048bae673bc01..ccab2de1feffa6f78b60b8eb558b6d5369e1959b 100644
--- a/components/sync/driver/ui_data_type_controller.cc
+++ b/components/sync/driver/ui_data_type_controller.cc
@@ -26,8 +26,8 @@ namespace sync_driver {
UIDataTypeController::UIDataTypeController()
: DirectoryDataTypeController(base::ThreadTaskRunnerHandle::Get(),
- base::Closure()),
- sync_client_(NULL),
+ base::Closure(),
+ nullptr),
state_(NOT_RUNNING),
type_(syncer::UNSPECIFIED) {}
@@ -36,8 +36,7 @@ UIDataTypeController::UIDataTypeController(
const base::Closure& error_callback,
syncer::ModelType type,
SyncClient* sync_client)
- : DirectoryDataTypeController(ui_thread, error_callback),
- sync_client_(sync_client),
+ : DirectoryDataTypeController(ui_thread, error_callback, sync_client),
state_(NOT_RUNNING),
type_(type),
processor_factory_(new GenericChangeProcessorFactory()),

Powered by Google App Engine
This is Rietveld 408576698