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

Unified Diff: chrome/browser/extensions/extension_sync_data.h

Issue 8399022: Add a couple of notifications related settings to app/extensions sync: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/extensions/extension_sync_data.h
===================================================================
--- chrome/browser/extensions/extension_sync_data.h (revision 107300)
+++ chrome/browser/extensions/extension_sync_data.h (working copy)
@@ -16,7 +16,10 @@
class ExtensionService;
class SyncData;
-namespace sync_pb { class ExtensionSpecifics; }
+namespace sync_pb {
+class AppSpecifics;
+class ExtensionSpecifics;
+}
// A class that encapsulates the synced properties of an Extension.
class ExtensionSyncData {
@@ -26,11 +29,14 @@
explicit ExtensionSyncData(const SyncChange& sync_change);
ExtensionSyncData(const Extension& extension,
bool enabled,
- bool incognito_enabled);
+ bool incognito_enabled,
+ bool notifications_initial_setup_done,
+ bool notifications_disabled);
~ExtensionSyncData();
// Convert an ExtensionSyncData back out to a sync structure.
void PopulateSyncSpecifics(sync_pb::ExtensionSpecifics* specifics) const;
+ void PopulateAppSpecifics(sync_pb::AppSpecifics* specifics) const;
SyncData GetSyncData() const;
SyncChange GetSyncChange(SyncChange::SyncChangeType change_type) const;
@@ -51,6 +57,14 @@
// Used only for debugging.
const std::string& name() const { return name_; }
+ bool notifications_initial_setup_done() const {
+ return notifications_initial_setup_done_;
+ }
+
+ bool notifications_disabled() const {
+ return notifications_disabled_;
+ }
+
private:
void PopulateFromExtensionSpecifics(
const sync_pb::ExtensionSpecifics& specifics);
@@ -64,6 +78,8 @@
Version version_;
GURL update_url_;
std::string name_;
+ bool notifications_initial_setup_done_;
+ bool notifications_disabled_;
};
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698