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

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

Issue 22958002: [Sync] Fix disappearing passphrase box in setup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reupload Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // True if the synced account uses a custom passphrase. 8 // True if the synced account uses a custom passphrase.
9 var usePassphrase_ = false; 9 var usePassphrase_ = false;
10 10
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 * Displays the advanced sync setting dialog, and pre-selects either the 609 * Displays the advanced sync setting dialog, and pre-selects either the
610 * "Sync everything" or the "Choose what to sync" drop-down menu item. 610 * "Sync everything" or the "Choose what to sync" drop-down menu item.
611 * @param {cr.DataTypeSelection} index Index of item to pre-select. 611 * @param {cr.DataTypeSelection} index Index of item to pre-select.
612 * @private 612 * @private
613 */ 613 */
614 showCustomizePage_: function(args, index) { 614 showCustomizePage_: function(args, index) {
615 $('confirm-sync-preferences').hidden = true; 615 $('confirm-sync-preferences').hidden = true;
616 $('customize-sync-preferences').hidden = false; 616 $('customize-sync-preferences').hidden = false;
617 617
618 $('sync-custom-passphrase-container').hidden = false; 618 $('sync-custom-passphrase-container').hidden = false;
619 $('sync-custom-passphrase').hidden = true;
620 $('sync-new-encryption-section-container').hidden = false; 619 $('sync-new-encryption-section-container').hidden = false;
621 $('customize-sync-encryption-new').hidden = false; 620 $('customize-sync-encryption-new').hidden = false;
622 621
623 $('sync-existing-passphrase-container').hidden = true; 622 $('sync-existing-passphrase-container').hidden = true;
624 623
625 $('sync-select-datatypes').selectedIndex = index; 624 $('sync-select-datatypes').selectedIndex = index;
626 this.setDataTypeCheckboxesEnabled_( 625 this.setDataTypeCheckboxesEnabled_(
627 index == DataTypeSelection.CHOOSE_WHAT_TO_SYNC); 626 index == DataTypeSelection.CHOOSE_WHAT_TO_SYNC);
628 627
629 // The passphrase input may need to take over focus from the OK button, so 628 // The passphrase input may need to take over focus from the OK button, so
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 796
798 SyncSetupOverlay.showStopSyncingUI = function() { 797 SyncSetupOverlay.showStopSyncingUI = function() {
799 SyncSetupOverlay.getInstance().showStopSyncingUI_(); 798 SyncSetupOverlay.getInstance().showStopSyncingUI_();
800 }; 799 };
801 800
802 // Export 801 // Export
803 return { 802 return {
804 SyncSetupOverlay: SyncSetupOverlay 803 SyncSetupOverlay: SyncSetupOverlay
805 }; 804 };
806 }); 805 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698