| 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 loading time after which error message must be displayed and | 10 // Gaia loading time after which error message must be displayed and |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 var name = cr.login.GaiaAuthHost.SUPPORTED_PARAMS[i]; | 402 var name = cr.login.GaiaAuthHost.SUPPORTED_PARAMS[i]; |
| 403 if (data[name]) | 403 if (data[name]) |
| 404 params[name] = data[name]; | 404 params[name] = data[name]; |
| 405 } | 405 } |
| 406 | 406 |
| 407 if (data.localizedStrings) | 407 if (data.localizedStrings) |
| 408 params.localizedStrings = data.localizedStrings; | 408 params.localizedStrings = data.localizedStrings; |
| 409 | 409 |
| 410 if (this.isNewGaiaFlow) { | 410 if (this.isNewGaiaFlow) { |
| 411 $('inner-container').classList.add('new-gaia-flow'); | 411 $('inner-container').classList.add('new-gaia-flow'); |
| 412 $('progress-dots').hidden = true; | |
| 413 params.chromeType = data.chromeType; | 412 params.chromeType = data.chromeType; |
| 414 params.isNewGaiaFlowChromeOS = true; | 413 params.isNewGaiaFlowChromeOS = true; |
| 415 } | 414 } |
| 416 | 415 |
| 417 if (data.gaiaEndpoint) | 416 if (data.gaiaEndpoint) |
| 418 params.gaiaPath = data.gaiaEndpoint; | 417 params.gaiaPath = data.gaiaEndpoint; |
| 419 | 418 |
| 420 $('login-header-bar').newGaiaFlow = this.isNewGaiaFlow; | 419 $('login-header-bar').newGaiaFlow = this.isNewGaiaFlow; |
| 421 | 420 |
| 422 // Screen size could have been changed because of 'new-gaia-flow' or | 421 // Screen size could have been changed because of 'new-gaia-flow' or |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 } | 936 } |
| 938 | 937 |
| 939 this.classList.toggle('whitelist-error', show); | 938 this.classList.toggle('whitelist-error', show); |
| 940 this.loading = !show; | 939 this.loading = !show; |
| 941 | 940 |
| 942 if (!show) | 941 if (!show) |
| 943 Oobe.showSigninUI(); | 942 Oobe.showSigninUI(); |
| 944 } | 943 } |
| 945 }; | 944 }; |
| 946 }); | 945 }); |
| OLD | NEW |