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

Unified Diff: chrome/browser/sync/protocol/app_specifics.proto

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/sync/protocol/app_specifics.proto
===================================================================
--- chrome/browser/sync/protocol/app_specifics.proto (revision 107300)
+++ chrome/browser/sync/protocol/app_specifics.proto (working copy)
@@ -17,6 +17,18 @@
import "sync.proto";
import "extension_specifics.proto";
+// Settings related to push notifications for apps.
+message AppNotificationSettings {
+ // Whether or not the user has setup notifications at least once.
+ // The value for this field will start out false and will be set
+ // to true when the user accepts receiving notifications for the
+ // first time and then it will always remain true.
+ optional bool initial_setup_done = 1;
+
+ // Whether or not the user has disabled notifications.
+ optional bool disabled = 2;
+}
+
// Properties of app sync objects.
//
// For now, an app is just an extension. We keep the two data types
@@ -24,6 +36,9 @@
message AppSpecifics {
// Extension data.
optional ExtensionSpecifics extension = 1;
+
+ // Notification settings.
+ optional AppNotificationSettings notification_settings = 2;
}
extend EntitySpecifics {

Powered by Google App Engine
This is Rietveld 408576698