summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/resources
diff options
context:
space:
mode:
authormunjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-21 21:59:26 +0000
committermunjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-21 21:59:26 +0000
commitaae9eeb10159ca2e345408f74d8425a41bb81ab4 (patch)
treea1843a6f019e1f08f214ac4e11e8346a6614ec8a /chrome/browser/sync/resources
parent4e57c88872d08f8e98ee1bae3258ba38e4694d87 (diff)
downloadchromium_src-aae9eeb10159ca2e345408f74d8425a41bb81ab4.zip
chromium_src-aae9eeb10159ca2e345408f74d8425a41bb81ab4.tar.gz
chromium_src-aae9eeb10159ca2e345408f74d8425a41bb81ab4.tar.bz2
Implement sync data type controller and UI for syncing notifications:
- Add class AppNotificationDataTypeController - Add resources and other things needed for sync UI for app notifications - Add command line flag to enable/disable app notifications sync. Review URL: http://codereview.chromium.org/8320017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106786 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/resources')
-rw-r--r--chrome/browser/sync/resources/configure.html16
1 files changed, 15 insertions, 1 deletions
diff --git a/chrome/browser/sync/resources/configure.html b/chrome/browser/sync/resources/configure.html
index 2ce7d3b..6bb13e6 100644
--- a/chrome/browser/sync/resources/configure.html
+++ b/chrome/browser/sync/resources/configure.html
@@ -373,6 +373,13 @@ html[os='mac'] input[type='submit'] {
} else {
document.getElementById("sessionsItem").className = "sync-item-hide";
}
+ if (args.appNotificationsRegistered) {
+ document.getElementById("appNotificationsCheckbox").checked =
+ args.syncAppNotifications;
+ document.getElementById("appNotificationsItem").className = "sync-item-show";
+ } else {
+ document.getElementById("appNotificationsItem").className = "sync-item-hide";
+ }
setCheckboxesToKeepEverythingSynced(args.syncAllDataTypes);
}
@@ -465,6 +472,7 @@ html[os='mac'] input[type='submit'] {
"syncApps": syncAll || f.appsCheckbox.checked,
"syncSearchEngines": syncAll || f.searchEnginesCheckbox.checked,
"syncSessions": syncAll || f.sessionsCheckbox.checked,
+ "syncAppNotifications": syncAll || f.appNotificationsCheckbox.checked,
"usePassphrase": (getRadioCheckedValue() == 'explicit'),
"passphrase": f.passphrase.value
});
@@ -625,7 +633,13 @@ html[os='mac'] input[type='submit'] {
<label id="searchEnginesCheckboxLabel" name="dataTypeLabel"
for="searchEnginesCheckbox" i18n-content="searchengines"
il8n-values="title:searchengines"></label>
- </div>
+ </div>
+ <div class="sync-item-show" id="appNotificationsItem">
+ <input id="appNotificationsCheckbox" name="dataTypeCheckbox" type="checkbox">
+ <label id="appNotificationsCheckboxLabel" name="dataTypeLabel"
+ for="appNotificationsCheckbox" i18n-content="appnotifications"
+ il8n-values="title:appnotifications"></label>
+ </div>
</div>
</div>
</div>