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

Side by Side Diff: chrome/browser/resources/chromeos/login/screen_gaia_signin.js

Issue 10889024: [cros] Initialize OOBE in parallel when boot animation is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Subscription fixes Created 8 years, 3 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 | Annotate | Revision Log
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 /** 5 /**
6 * @fileoverview Oobe signin screen implementation. 6 * @fileoverview Oobe signin screen implementation.
7 */ 7 */
8 8
9 cr.define('login', function() { 9 cr.define('login', function() {
10 // Gaia loading time after which portal check should be fired. 10 // Gaia loading time after which portal check should be fired.
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 this.loading = false; 284 this.loading = false;
285 $('error-message').update(); 285 $('error-message').update();
286 this.clearLoadingTimer_(); 286 this.clearLoadingTimer_();
287 // Show deferred error bubble. 287 // Show deferred error bubble.
288 if (this.errorBubble_) { 288 if (this.errorBubble_) {
289 this.showErrorBubble(this.errorBubble_[0], this.errorBubble_[1]); 289 this.showErrorBubble(this.errorBubble_[0], this.errorBubble_[1]);
290 this.errorBubble_ = undefined; 290 this.errorBubble_ = undefined;
291 } 291 }
292 this.clearRetry_(); 292 this.clearRetry_();
293 chrome.send('loginWebuiReady'); 293 chrome.send('loginWebuiReady');
294 // Report back sign in UI being painted. 294 chrome.send('loginVisible');
295 window.webkitRequestAnimationFrame(function() {
296 chrome.send('loginVisible');
297 });
298 } else if (msg.method == 'offlineLogin') { 295 } else if (msg.method == 'offlineLogin') {
299 this.email = msg.email; 296 this.email = msg.email;
300 chrome.send('authenticateUser', [msg.email, msg.password]); 297 chrome.send('authenticateUser', [msg.email, msg.password]);
301 this.loading = true; 298 this.loading = true;
302 Oobe.getInstance().headerHidden = true; 299 Oobe.getInstance().headerHidden = true;
303 } 300 }
304 }, 301 },
305 302
306 /** 303 /**
307 * Clears input fields and switches to input mode. 304 * Clears input fields and switches to input mode.
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 * @param {Object} data New extension parameters bag. 428 * @param {Object} data New extension parameters bag.
432 */ 429 */
433 GaiaSigninScreen.updateAuthExtension = function(data) { 430 GaiaSigninScreen.updateAuthExtension = function(data) {
434 $('gaia-signin').updateAuthExtension_(data); 431 $('gaia-signin').updateAuthExtension_(data);
435 }; 432 };
436 433
437 return { 434 return {
438 GaiaSigninScreen: GaiaSigninScreen 435 GaiaSigninScreen: GaiaSigninScreen
439 }; 436 };
440 }); 437 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698