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

Unified Diff: chrome/browser/sync/glue/app_notification_data_type_controller.cc

Issue 9395058: [Sync] Remove SyncableServiceAdapter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review Created 8 years, 10 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: chrome/browser/sync/glue/app_notification_data_type_controller.cc
diff --git a/chrome/browser/sync/glue/app_notification_data_type_controller.cc b/chrome/browser/sync/glue/app_notification_data_type_controller.cc
index 52e05e38d2f589f80180c24dcc6bc85c172b8095..a11a0bdace6ed139ad187261ee0537f1e2d2369b 100644
--- a/chrome/browser/sync/glue/app_notification_data_type_controller.cc
+++ b/chrome/browser/sync/glue/app_notification_data_type_controller.cc
@@ -23,13 +23,12 @@ AppNotificationDataTypeController::AppNotificationDataTypeController(
ProfileSyncComponentsFactory* profile_sync_factory,
Profile* profile,
ProfileSyncService* sync_service)
- : FrontendDataTypeController(profile_sync_factory,
- profile,
- sync_service) {
+ : UIDataTypeController(profile_sync_factory,
+ profile,
+ sync_service) {
}
AppNotificationDataTypeController::~AppNotificationDataTypeController() {
- CleanUpState();
}
syncable::ModelType AppNotificationDataTypeController::type() const {
@@ -62,18 +61,10 @@ bool AppNotificationDataTypeController::StartModels() {
}
// Cleanup for our extra registrar usage.
-void AppNotificationDataTypeController::CleanUpState() {
+void AppNotificationDataTypeController::StopModels() {
registrar_.RemoveAll();
}
-void AppNotificationDataTypeController::CreateSyncComponents() {
- ProfileSyncComponentsFactory::SyncComponents sync_components =
- profile_sync_factory_->CreateAppNotificationSyncComponents(
- sync_service_, this);
- set_model_associator(sync_components.model_associator);
- set_change_processor(sync_components.change_processor);
-}
-
AppNotificationManager*
AppNotificationDataTypeController::GetAppNotificationManager() {
return profile_->GetExtensionService()->app_notification_manager();

Powered by Google App Engine
This is Rietveld 408576698