OLD | NEW |
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 <include src="../shared/js/util.js"></include> | |
6 | |
7 cr.define('options', function() { | 5 cr.define('options', function() { |
8 /** @const */ var OptionsPage = options.OptionsPage; | 6 /** @const */ var OptionsPage = options.OptionsPage; |
9 | 7 |
10 // 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 |
11 // 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 |
12 // the browser. This means subsequent errors (like invalid password) are | 10 // the browser. This means subsequent errors (like invalid password) are |
13 // rendered in the captcha state, which is basically identical except we | 11 // rendered in the captcha state, which is basically identical except we |
14 // don't show the top error blurb 'Error Signing in' or the 'Create | 12 // don't show the top error blurb 'Error Signing in' or the 'Create |
15 // account' link. | 13 // account' link. |
16 var captchaChallengeActive_ = false; | 14 var captchaChallengeActive_ = false; |
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 | 888 |
891 SyncSetupOverlay.showStopSyncingUI = function() { | 889 SyncSetupOverlay.showStopSyncingUI = function() { |
892 SyncSetupOverlay.getInstance().showStopSyncingUI_(); | 890 SyncSetupOverlay.getInstance().showStopSyncingUI_(); |
893 }; | 891 }; |
894 | 892 |
895 // Export | 893 // Export |
896 return { | 894 return { |
897 SyncSetupOverlay: SyncSetupOverlay | 895 SyncSetupOverlay: SyncSetupOverlay |
898 }; | 896 }; |
899 }); | 897 }); |
OLD | NEW |