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

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

Issue 11052015: Fix bug with login-prompt-visible not being sent in some rare cases. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build Created 8 years, 2 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 chrome.send('loginVisible'); 294 chrome.send('loginVisible', ['gaia']);
295 // Warm up the user images screen. 295 // Warm up the user images screen.
296 window.setTimeout(function() { 296 window.setTimeout(function() {
297 Oobe.getInstance().preloadScreen({id: SCREEN_USER_IMAGE_PICKER}); 297 Oobe.getInstance().preloadScreen({id: SCREEN_USER_IMAGE_PICKER});
298 }, 0); 298 }, 0);
299 } else if (msg.method == 'offlineLogin') { 299 } else if (msg.method == 'offlineLogin') {
300 this.email = msg.email; 300 this.email = msg.email;
301 chrome.send('authenticateUser', [msg.email, msg.password]); 301 chrome.send('authenticateUser', [msg.email, msg.password]);
302 this.loading = true; 302 this.loading = true;
303 Oobe.getInstance().headerHidden = true; 303 Oobe.getInstance().headerHidden = true;
304 } 304 }
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 * @param {Object} data New extension parameters bag. 430 * @param {Object} data New extension parameters bag.
431 */ 431 */
432 GaiaSigninScreen.updateAuthExtension = function(data) { 432 GaiaSigninScreen.updateAuthExtension = function(data) {
433 $('gaia-signin').updateAuthExtension_(data); 433 $('gaia-signin').updateAuthExtension_(data);
434 }; 434 };
435 435
436 return { 436 return {
437 GaiaSigninScreen: GaiaSigninScreen 437 GaiaSigninScreen: GaiaSigninScreen
438 }; 438 };
439 }); 439 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698