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

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

Issue 1052103003: Update frame around SAML IdP pages to new GAIA style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
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 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 * @param {Object} data Extension parameters bag. 331 * @param {Object} data Extension parameters bag.
332 * @private 332 * @private
333 */ 333 */
334 loadAuthExtension: function(data) { 334 loadAuthExtension: function(data) {
335 this.isNewGaiaFlow = data.useNewGaiaFlow; 335 this.isNewGaiaFlow = data.useNewGaiaFlow;
336 this.isLocal = data.isLocal; 336 this.isLocal = data.isLocal;
337 this.email = ''; 337 this.email = '';
338 338
339 // Reset SAML 339 // Reset SAML
340 this.classList.toggle('full-width', false); 340 this.classList.toggle('full-width', false);
341 if (Oobe.getInstance().currentScreen === this)
342 Oobe.getInstance().updateScreenSize(this);
341 this.samlPasswordConfirmAttempt_ = 0; 343 this.samlPasswordConfirmAttempt_ = 0;
342 344
343 this.updateAuthExtension(data); 345 this.updateAuthExtension(data);
344 346
345 var params = {}; 347 var params = {};
346 for (var i in cr.login.GaiaAuthHost.SUPPORTED_PARAMS) { 348 for (var i in cr.login.GaiaAuthHost.SUPPORTED_PARAMS) {
347 var name = cr.login.GaiaAuthHost.SUPPORTED_PARAMS[i]; 349 var name = cr.login.GaiaAuthHost.SUPPORTED_PARAMS[i];
348 if (data[name]) 350 if (data[name])
349 params[name] = data[name]; 351 params[name] = data[name];
350 } 352 }
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 } 851 }
850 852
851 this.classList.toggle('whitelist-error', show); 853 this.classList.toggle('whitelist-error', show);
852 this.loading = !show; 854 this.loading = !show;
853 855
854 if (!show) 856 if (!show)
855 Oobe.showSigninUI(); 857 Oobe.showSigninUI();
856 }, 858 },
857 }; 859 };
858 }); 860 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698