| 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 310 |
| 311 if (data.localizedStrings) | 311 if (data.localizedStrings) |
| 312 params.localizedStrings = data.localizedStrings; | 312 params.localizedStrings = data.localizedStrings; |
| 313 | 313 |
| 314 if (data.useMinuteMaid) { | 314 if (data.useMinuteMaid) { |
| 315 this.isMinuteMaid = true; | 315 this.isMinuteMaid = true; |
| 316 $('inner-container').classList.add('minute-maid'); | 316 $('inner-container').classList.add('minute-maid'); |
| 317 $('progress-dots').hidden = true; | 317 $('progress-dots').hidden = true; |
| 318 if (data.enterpriseDomain) | 318 if (data.enterpriseDomain) |
| 319 params.enterpriseDomain = data.enterpriseDomain; | 319 params.enterpriseDomain = data.enterpriseDomain; |
| 320 params.chromeType = data.chromeType; |
| 320 data.useEmbedded = false; | 321 data.useEmbedded = false; |
| 321 params.isMinuteMaidChromeOS = true; | 322 params.isMinuteMaidChromeOS = true; |
| 322 $('login-header-bar').showGuestButton = true; | 323 $('login-header-bar').showGuestButton = true; |
| 323 } | 324 } |
| 324 | 325 |
| 325 if (data.gaiaEndpoint) | 326 if (data.gaiaEndpoint) |
| 326 params.gaiaPath = data.gaiaEndpoint; | 327 params.gaiaPath = data.gaiaEndpoint; |
| 327 | 328 |
| 328 $('login-header-bar').minuteMaid = this.isMinuteMaid; | 329 $('login-header-bar').minuteMaid = this.isMinuteMaid; |
| 329 | 330 |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 * For more info see C++ class 'WebUILoginView' which calls this method. | 718 * For more info see C++ class 'WebUILoginView' which calls this method. |
| 718 * @param {number} error Error code. | 719 * @param {number} error Error code. |
| 719 * @param {string} url The URL that failed to load. | 720 * @param {string} url The URL that failed to load. |
| 720 */ | 721 */ |
| 721 onFrameError: function(error, url) { | 722 onFrameError: function(error, url) { |
| 722 this.error_ = error; | 723 this.error_ = error; |
| 723 chrome.send('frameLoadingCompleted', [this.error_]); | 724 chrome.send('frameLoadingCompleted', [this.error_]); |
| 724 }, | 725 }, |
| 725 }; | 726 }; |
| 726 }); | 727 }); |
| OLD | NEW |