| Index: chrome/browser/extensions/app_notification_manager.h
|
| diff --git a/chrome/browser/extensions/app_notification_manager.h b/chrome/browser/extensions/app_notification_manager.h
|
| index 9a84b5ddb5986b9f71fd0cf7bb683f476eb23967..74104f33cdbe34cd55dccf638a76f8fa85a32d08 100644
|
| --- a/chrome/browser/extensions/app_notification_manager.h
|
| +++ b/chrome/browser/extensions/app_notification_manager.h
|
| @@ -26,7 +26,7 @@
|
| class PerfTimer;
|
| class Profile;
|
|
|
| -namespace csync {
|
| +namespace syncer {
|
| class SyncErrorFactory;
|
| }
|
|
|
| @@ -36,7 +36,7 @@ class AppNotificationManager
|
| AppNotificationManager,
|
| content::BrowserThread::DeleteOnUIThread>,
|
| public content::NotificationObserver,
|
| - public csync::SyncableService {
|
| + public syncer::SyncableService {
|
| public:
|
| static const unsigned int kMaxNotificationPerApp;
|
| explicit AppNotificationManager(Profile* profile);
|
| @@ -64,22 +64,22 @@ class AppNotificationManager
|
|
|
| bool loaded() const { return notifications_.get() != NULL; }
|
|
|
| - // csync::SyncableService implementation.
|
| + // syncer::SyncableService implementation.
|
|
|
| - // Returns all syncable notifications from this model as csync::SyncData.
|
| - virtual csync::SyncDataList GetAllSyncData(
|
| + // Returns all syncable notifications from this model as syncer::SyncData.
|
| + virtual syncer::SyncDataList GetAllSyncData(
|
| syncable::ModelType type) const OVERRIDE;
|
| // Process notifications related changes from Sync, merging them into
|
| // our model.
|
| - virtual csync::SyncError ProcessSyncChanges(
|
| + virtual syncer::SyncError ProcessSyncChanges(
|
| const tracked_objects::Location& from_here,
|
| - const csync::SyncChangeList& change_list) OVERRIDE;
|
| + const syncer::SyncChangeList& change_list) OVERRIDE;
|
| // Associate and merge sync data model with our data model.
|
| - virtual csync::SyncError MergeDataAndStartSyncing(
|
| + virtual syncer::SyncError MergeDataAndStartSyncing(
|
| syncable::ModelType type,
|
| - const csync::SyncDataList& initial_sync_data,
|
| - scoped_ptr<csync::SyncChangeProcessor> sync_processor,
|
| - scoped_ptr<csync::SyncErrorFactory> sync_error_factory) OVERRIDE;
|
| + const syncer::SyncDataList& initial_sync_data,
|
| + scoped_ptr<syncer::SyncChangeProcessor> sync_processor,
|
| + scoped_ptr<syncer::SyncErrorFactory> sync_error_factory) OVERRIDE;
|
| virtual void StopSyncing(syncable::ModelType type) OVERRIDE;
|
|
|
| private:
|
| @@ -150,11 +150,11 @@ class AppNotificationManager
|
| // Sends changes to syncer to remove all notifications in the given list.
|
| void SyncClearAllChange(const AppNotificationList& list);
|
|
|
| - // Converters from AppNotification to csync::SyncData and vice versa.
|
| - static csync::SyncData CreateSyncDataFromNotification(
|
| + // Converters from AppNotification to syncer::SyncData and vice versa.
|
| + static syncer::SyncData CreateSyncDataFromNotification(
|
| const AppNotification& notification);
|
| static AppNotification* CreateNotificationFromSyncData(
|
| - const csync::SyncData& sync_data);
|
| + const syncer::SyncData& sync_data);
|
|
|
| Profile* profile_;
|
| content::NotificationRegistrar registrar_;
|
| @@ -164,10 +164,10 @@ class AppNotificationManager
|
| scoped_ptr<AppNotificationStorage> storage_;
|
|
|
| // Sync change processor we use to push all our changes.
|
| - scoped_ptr<csync::SyncChangeProcessor> sync_processor_;
|
| + scoped_ptr<syncer::SyncChangeProcessor> sync_processor_;
|
|
|
| // Sync error handler that we use to create errors from.
|
| - scoped_ptr<csync::SyncErrorFactory> sync_error_factory_;
|
| + scoped_ptr<syncer::SyncErrorFactory> sync_error_factory_;
|
|
|
| // Whether the sync model is associated with the local model.
|
| // In other words, whether we are ready to apply sync changes.
|
|
|