summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/sync_setup_overlay.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/sync_setup_overlay.js')
-rw-r--r--chrome/browser/resources/sync_setup_overlay.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/resources/sync_setup_overlay.js b/chrome/browser/resources/sync_setup_overlay.js
index a60b29b..2876331 100644
--- a/chrome/browser/resources/sync_setup_overlay.js
+++ b/chrome/browser/resources/sync_setup_overlay.js
@@ -250,6 +250,8 @@ cr.define('options', function() {
"syncTypedUrls": syncAll || $('typed-urls-checkbox').checked,
"syncApps": syncAll || $('apps-checkbox').checked,
"syncSearchEngines": syncAll || $('search-engines-checkbox').checked,
+ "syncAppNotifications": syncAll ||
+ $('app-notifications-checkbox').checked,
"syncSessions": syncAll || $('sessions-checkbox').checked,
"encryptAllData": encryptAllData,
"usePassphrase": usePassphrase,
@@ -356,6 +358,12 @@ cr.define('options', function() {
} else {
$('sessions-item').className = "sync-item-hide";
}
+ if (args.appNotificationsRegistered) {
+ $('app-notifications-checkbox').checked = args.syncAppNotifications;
+ $('app-notifications-item').className = "sync-item-show";
+ } else {
+ $('app-notifications-item').className = "sync-item-hide";
+ }
this.setCheckboxesToKeepEverythingSynced_(args.syncAllDataTypes);
},