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

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: Rebase Created 8 years, 9 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 bc2fb89eab738f03bda81fef97fb89a1fd8c2a9c..4a94fdba647a6251849415c77a84a31eabcfc0cf 100644
--- a/chrome/browser/sync/glue/app_notification_data_type_controller.cc
+++ b/chrome/browser/sync/glue/app_notification_data_type_controller.cc
@@ -23,17 +23,13 @@ AppNotificationDataTypeController::AppNotificationDataTypeController(
ProfileSyncComponentsFactory* profile_sync_factory,
Profile* profile,
ProfileSyncService* sync_service)
- : FrontendDataTypeController(profile_sync_factory,
- profile,
- sync_service) {
+ : UIDataTypeController(syncable::APP_NOTIFICATIONS,
+ profile_sync_factory,
+ profile,
+ sync_service) {
}
AppNotificationDataTypeController::~AppNotificationDataTypeController() {
- CleanUpState();
-}
-
-syncable::ModelType AppNotificationDataTypeController::type() const {
- return syncable::APP_NOTIFICATIONS;
}
void AppNotificationDataTypeController::Observe(
@@ -62,18 +58,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