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

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

Issue 2511703004: [Sync] Remove UIDataTypeController (Closed)
Patch Set: Rebase. Created 4 years, 1 month 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 1290a052fbb103b64a09320793383d130149433e..bb08a9f946c0fcee7e16998cac312a698645504b 100644
--- a/components/sync/driver/ui_data_type_controller.cc
+++ b/components/sync/driver/ui_data_type_controller.cc
@@ -25,13 +25,16 @@
namespace syncer {
UIDataTypeController::UIDataTypeController()
- : DirectoryDataTypeController(UNSPECIFIED, base::Closure(), nullptr),
+ : DirectoryDataTypeController(UNSPECIFIED,
+ base::Closure(),
+ nullptr,
+ GROUP_UI),
state_(NOT_RUNNING) {}
UIDataTypeController::UIDataTypeController(ModelType type,
const base::Closure& dump_stack,
SyncClient* sync_client)
- : DirectoryDataTypeController(type, dump_stack, sync_client),
+ : DirectoryDataTypeController(type, dump_stack, sync_client, GROUP_UI),
state_(NOT_RUNNING),
processor_factory_(new GenericChangeProcessorFactory()) {
DCHECK(IsRealDataType(type));
@@ -311,11 +314,6 @@ void UIDataTypeController::StopModels() {
// Do nothing by default.
}
-ModelSafeGroup UIDataTypeController::model_safe_group() const {
- DCHECK(IsRealDataType(type()));
- return GROUP_UI;
-}
-
std::string UIDataTypeController::name() const {
// For logging only.
return ModelTypeToString(type());
« no previous file with comments | « components/sync/driver/ui_data_type_controller.h ('k') | components/sync_sessions/session_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698