diff options
author | munjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-16 20:03:27 +0000 |
---|---|---|
committer | munjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-16 20:03:27 +0000 |
commit | 9ed24fef99771e228942bc3823e9e9ee9086128c (patch) | |
tree | 61ce6f9cf8a501123dae43f8cb7ff3a2fd35a75e | |
parent | b383640dbf09a7696e65a8ebe50711562c9943b4 (diff) | |
download | chromium_src-9ed24fef99771e228942bc3823e9e9ee9086128c.zip chromium_src-9ed24fef99771e228942bc3823e9e9ee9086128c.tar.gz chromium_src-9ed24fef99771e228942bc3823e9e9ee9086128c.tar.bz2 |
Add oauth client id to AppSpecifics. We will use that when a user revokes notification permission.
Review URL: http://codereview.chromium.org/8537017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110345 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/sync/protocol/app_specifics.proto | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/sync/protocol/app_specifics.proto b/chrome/browser/sync/protocol/app_specifics.proto index e7eb7fb..6812b24 100644 --- a/chrome/browser/sync/protocol/app_specifics.proto +++ b/chrome/browser/sync/protocol/app_specifics.proto @@ -19,6 +19,7 @@ import "extension_specifics.proto"; // Settings related to push notifications for apps. message AppNotificationSettings { + // DEPRECATED: Use oauth_client_id below. // 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 @@ -27,6 +28,15 @@ message AppNotificationSettings { // Whether or not the user has disabled notifications. optional bool disabled = 2; + + // OAuth2 client id to which the user granted the notification permission. + // This field will start out empty. + // It will be set when the user accepts receiving notifications. + // This field is used when the user revokes the notifications permission. + // Note that it is never cleared after it was set once. Hence, the presence + // of this field can be used to determine if the user has setup notifications + // at least once for the given app. + optional string oauth_client_id = 3; } // Properties of app sync objects. |