Chromium Code Reviews| 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 /** | 5 /** |
| 6 * @fileoverview Oobe signin screen implementation. | 6 * @fileoverview Oobe signin screen implementation. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { | 9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { |
| 10 // GAIA animation guard timer. Started when GAIA page is loaded | 10 // GAIA animation guard timer. Started when GAIA page is loaded |
| (...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1084 }, | 1084 }, |
| 1085 | 1085 |
| 1086 loadAdAuth: function(params) { | 1086 loadAdAuth: function(params) { |
| 1087 this.loading = true; | 1087 this.loading = true; |
| 1088 this.startLoadingTimer_(); | 1088 this.startLoadingTimer_(); |
| 1089 var ADAuthUI = this.getSigninFrame_(); | 1089 var ADAuthUI = this.getSigninFrame_(); |
| 1090 if ('realm' in params) { | 1090 if ('realm' in params) { |
| 1091 ADAuthUI.realm = params['realm']; | 1091 ADAuthUI.realm = params['realm']; |
| 1092 ADAuthUI.userRealm = '@' + params['realm']; | 1092 ADAuthUI.userRealm = '@' + params['realm']; |
| 1093 } | 1093 } |
| 1094 if ('email' in params) | 1094 ADAuthUI.setUser(params['email']); |
|
achuithb
2017/01/30 23:53:34
How does this change help?
| |
| 1095 ADAuthUI.setUser(params['email']); | |
| 1096 this.onAuthReady_(); | 1095 this.onAuthReady_(); |
| 1097 }, | 1096 }, |
| 1098 | 1097 |
| 1099 /** | 1098 /** |
| 1100 * Show/Hide error when user is not in whitelist. When UI is hidden | 1099 * Show/Hide error when user is not in whitelist. When UI is hidden |
| 1101 * GAIA is reloaded. | 1100 * GAIA is reloaded. |
| 1102 * @param {boolean} show Show/hide error UI. | 1101 * @param {boolean} show Show/hide error UI. |
| 1103 * @param {!Object} opt_data Optional additional information. | 1102 * @param {!Object} opt_data Optional additional information. |
| 1104 */ | 1103 */ |
| 1105 showWhitelistCheckFailedError: function(show, opt_data) { | 1104 showWhitelistCheckFailedError: function(show, opt_data) { |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 1124 invalidateAd: function(username) { | 1123 invalidateAd: function(username) { |
| 1125 if (this.screenMode_ != ScreenMode.AD_AUTH) | 1124 if (this.screenMode_ != ScreenMode.AD_AUTH) |
| 1126 return; | 1125 return; |
| 1127 var adAuthUI = this.getSigninFrame_(); | 1126 var adAuthUI = this.getSigninFrame_(); |
| 1128 adAuthUI.setUser(username); | 1127 adAuthUI.setUser(username); |
| 1129 adAuthUI.setInvalid(ACTIVE_DIRECTORY_ERROR_STATE.BAD_PASSWORD); | 1128 adAuthUI.setInvalid(ACTIVE_DIRECTORY_ERROR_STATE.BAD_PASSWORD); |
| 1130 this.loading = false; | 1129 this.loading = false; |
| 1131 } | 1130 } |
| 1132 }; | 1131 }; |
| 1133 }); | 1132 }); |
| OLD | NEW |