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

Unified Diff: components/browser_sync/browser/profile_sync_components_factory_impl.cc

Issue 2017963002: [Sync] Remove DeviceInfoModelTypeController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | components/sync_driver.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_sync/browser/profile_sync_components_factory_impl.cc
diff --git a/components/browser_sync/browser/profile_sync_components_factory_impl.cc b/components/browser_sync/browser/profile_sync_components_factory_impl.cc
index 3e233de8eedae248c61e4b3be87922f7a0b929d3..c15a8797e152ad5e1a53b9264190a2f90dc26412 100644
--- a/components/browser_sync/browser/profile_sync_components_factory_impl.cc
+++ b/components/browser_sync/browser/profile_sync_components_factory_impl.cc
@@ -29,7 +29,6 @@
#include "components/sync_bookmarks/bookmark_model_associator.h"
#include "components/sync_driver/data_type_manager_impl.h"
#include "components/sync_driver/device_info_data_type_controller.h"
-#include "components/sync_driver/device_info_model_type_controller.h"
#include "components/sync_driver/glue/chrome_report_unrecoverable_error.h"
#include "components/sync_driver/glue/sync_backend_host.h"
#include "components/sync_driver/glue/sync_backend_host_impl.h"
@@ -38,6 +37,7 @@
#include "components/sync_driver/sync_client.h"
#include "components/sync_driver/sync_driver_switches.h"
#include "components/sync_driver/ui_data_type_controller.h"
+#include "components/sync_driver/ui_model_type_controller.h"
#include "components/sync_sessions/session_data_type_controller.h"
#include "google_apis/gaia/oauth2_token_service.h"
#include "google_apis/gaia/oauth2_token_service_request.h"
@@ -67,7 +67,7 @@ using sync_driver::DataTypeManagerObserver;
using sync_driver::DeviceInfoDataTypeController;
using sync_driver::ProxyDataTypeController;
using sync_driver::UIDataTypeController;
-using sync_driver_v2::DeviceInfoModelTypeController;
+using sync_driver_v2::UIModelTypeController;
namespace {
@@ -145,8 +145,8 @@ void ProfileSyncComponentsFactoryImpl::RegisterCommonDataTypes(
// TODO(stanisc): can DEVICE_INFO be one of disabled datatypes?
if (channel_ == version_info::Channel::UNKNOWN &&
command_line_.HasSwitch(switches::kSyncEnableUSSDeviceInfo)) {
- sync_service->RegisterDataTypeController(new DeviceInfoModelTypeController(
- ui_thread_, error_callback, sync_client_));
+ sync_service->RegisterDataTypeController(new UIModelTypeController(
+ ui_thread_, error_callback, syncer::DEVICE_INFO, sync_client_));
} else {
sync_service->RegisterDataTypeController(new DeviceInfoDataTypeController(
ui_thread_, error_callback, sync_client_,
« no previous file with comments | « no previous file | components/sync_driver.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698