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

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

Issue 12601017: Remove forceLogin flag from sync setup. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync Created 7 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/sync_setup_browsertest.js » ('j') | 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 // 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 showOverlay_: function() { 93 showOverlay_: function() {
94 OptionsPage.navigateToPage('syncSetup'); 94 OptionsPage.navigateToPage('syncSetup');
95 }, 95 },
96 96
97 closeOverlay_: function() { 97 closeOverlay_: function() {
98 OptionsPage.closeOverlay(); 98 OptionsPage.closeOverlay();
99 }, 99 },
100 100
101 /** @override */ 101 /** @override */
102 didShowPage: function() { 102 didShowPage: function() {
103 var forceLogin = document.location.hash == '#forceLogin'; 103 chrome.send('SyncSetupShowSetupUI');
104 var result = JSON.stringify({'forceLogin': forceLogin});
105 chrome.send('SyncSetupAttachHandler', [result]);
106 }, 104 },
107 105
108 /** @override */ 106 /** @override */
109 didClosePage: function() { 107 didClosePage: function() {
110 chrome.send('SyncSetupDidClosePage'); 108 chrome.send('SyncSetupDidClosePage');
111 }, 109 },
112 110
113 getEncryptionRadioCheckedValue_: function() { 111 getEncryptionRadioCheckedValue_: function() {
114 var f = $('choose-data-types-form'); 112 var f = $('choose-data-types-form');
115 for (var i = 0; i < f.encrypt.length; ++i) { 113 for (var i = 0; i < f.encrypt.length; ++i) {
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 1048
1051 SyncSetupOverlay.showStopSyncingUI = function() { 1049 SyncSetupOverlay.showStopSyncingUI = function() {
1052 SyncSetupOverlay.getInstance().showStopSyncingUI_(); 1050 SyncSetupOverlay.getInstance().showStopSyncingUI_();
1053 }; 1051 };
1054 1052
1055 // Export 1053 // Export
1056 return { 1054 return {
1057 SyncSetupOverlay: SyncSetupOverlay 1055 SyncSetupOverlay: SyncSetupOverlay
1058 }; 1056 };
1059 }); 1057 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/sync_setup_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698