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

Side by Side Diff: chrome/browser/resources/sync_setup_overlay.js

Issue 11445002: Sync user's custom spellcheck dictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('options', function() { 5 cr.define('options', function() {
6 /** @const */ var OptionsPage = options.OptionsPage; 6 /** @const */ var OptionsPage = options.OptionsPage;
7 7
8 // Variable to track if a captcha challenge was issued. If this gets set to 8 // Variable to track if a captcha challenge was issued. If this gets set to
9 // true, it stays that way until we are told about successful login from 9 // true, it stays that way until we are told about successful login from
10 // the browser. This means subsequent errors (like invalid password) are 10 // the browser. This means subsequent errors (like invalid password) are
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 'syncAllDataTypes': syncAll, 263 'syncAllDataTypes': syncAll,
264 'bookmarksSynced': syncAll || $('bookmarks-checkbox').checked, 264 'bookmarksSynced': syncAll || $('bookmarks-checkbox').checked,
265 'preferencesSynced': syncAll || $('preferences-checkbox').checked, 265 'preferencesSynced': syncAll || $('preferences-checkbox').checked,
266 'themesSynced': syncAll || $('themes-checkbox').checked, 266 'themesSynced': syncAll || $('themes-checkbox').checked,
267 'passwordsSynced': syncAll || $('passwords-checkbox').checked, 267 'passwordsSynced': syncAll || $('passwords-checkbox').checked,
268 'autofillSynced': syncAll || $('autofill-checkbox').checked, 268 'autofillSynced': syncAll || $('autofill-checkbox').checked,
269 'extensionsSynced': syncAll || $('extensions-checkbox').checked, 269 'extensionsSynced': syncAll || $('extensions-checkbox').checked,
270 'typedUrlsSynced': syncAll || $('typed-urls-checkbox').checked, 270 'typedUrlsSynced': syncAll || $('typed-urls-checkbox').checked,
271 'appsSynced': syncAll || $('apps-checkbox').checked, 271 'appsSynced': syncAll || $('apps-checkbox').checked,
272 'sessionsSynced': syncAll || $('sessions-checkbox').checked, 272 'sessionsSynced': syncAll || $('sessions-checkbox').checked,
273 'dictionarySynced': syncAll || $('dictionary-checkbox').checked,
273 'encryptAllData': encryptAllData, 274 'encryptAllData': encryptAllData,
274 'usePassphrase': usePassphrase, 275 'usePassphrase': usePassphrase,
275 'isGooglePassphrase': googlePassphrase, 276 'isGooglePassphrase': googlePassphrase,
276 'passphrase': customPassphrase 277 'passphrase': customPassphrase
277 }); 278 });
278 chrome.send('SyncSetupConfigure', [result]); 279 chrome.send('SyncSetupConfigure', [result]);
279 }, 280 },
280 281
281 /** 282 /**
282 * Sets the disabled property of all input elements within the 'Customize 283 * Sets the disabled property of all input elements within the 'Customize
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 $('apps-item').hidden = false; 370 $('apps-item').hidden = false;
370 } else { 371 } else {
371 $('apps-item').hidden = true; 372 $('apps-item').hidden = true;
372 } 373 }
373 if (args.sessionsRegistered) { 374 if (args.sessionsRegistered) {
374 $('sessions-checkbox').checked = args.sessionsSynced; 375 $('sessions-checkbox').checked = args.sessionsSynced;
375 $('sessions-item').hidden = false; 376 $('sessions-item').hidden = false;
376 } else { 377 } else {
377 $('sessions-item').hidden = true; 378 $('sessions-item').hidden = true;
378 } 379 }
380 if (args.dictionaryRegistered) {
381 $('dictionary-checkbox').checked = args.dictionarySynced;
382 $('dictionary-item').hidden = false;
383 } else {
384 $('dictionary-item').hidden = true;
385 }
379 386
380 this.setCheckboxesToKeepEverythingSynced_(args.syncAllDataTypes); 387 this.setCheckboxesToKeepEverythingSynced_(args.syncAllDataTypes);
381 }, 388 },
382 389
383 setEncryptionRadios_: function(args) { 390 setEncryptionRadios_: function(args) {
384 if (args.encryptAllData) { 391 if (args.encryptAllData) {
385 $('encrypt-all-option').checked = true; 392 $('encrypt-all-option').checked = true;
386 this.disableEncryptionRadioGroup_(); 393 this.disableEncryptionRadioGroup_();
387 } else { 394 } else {
388 $('encrypt-sensitive-option').checked = true; 395 $('encrypt-sensitive-option').checked = true;
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 1057
1051 SyncSetupOverlay.showStopSyncingUI = function() { 1058 SyncSetupOverlay.showStopSyncingUI = function() {
1052 SyncSetupOverlay.getInstance().showStopSyncingUI_(); 1059 SyncSetupOverlay.getInstance().showStopSyncingUI_();
1053 }; 1060 };
1054 1061
1055 // Export 1062 // Export
1056 return { 1063 return {
1057 SyncSetupOverlay: SyncSetupOverlay 1064 SyncSetupOverlay: SyncSetupOverlay
1058 }; 1065 };
1059 }); 1066 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698