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

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

Issue 1179323005: Polymer upgraded to 1.0 in login flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@polymer_pre_migration
Patch Set: Comments addressed. Created 5 years, 6 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 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 if (!this.cancelAllowed_) { 872 if (!this.cancelAllowed_) {
873 // In OOBE signin screen, cancel is not allowed because there is 873 // In OOBE signin screen, cancel is not allowed because there is
874 // no other screen to show. If user is in middle of a saml flow, 874 // no other screen to show. If user is in middle of a saml flow,
875 // reset signin screen to get out of the saml flow. 875 // reset signin screen to get out of the saml flow.
876 if (this.isSAML()) 876 if (this.isSAML())
877 Oobe.resetSigninUI(true); 877 Oobe.resetSigninUI(true);
878 878
879 return; 879 return;
880 } 880 }
881 881
882 $('offline-gaia').switchToEmailCard();
883
882 this.classList.remove('whitelist-error'); 884 this.classList.remove('whitelist-error');
883 Oobe.showUserPods(); 885 Oobe.showUserPods();
884 }, 886 },
885 887
886 /** 888 /**
887 * Handler for iframe's error notification coming from the outside. 889 * Handler for iframe's error notification coming from the outside.
888 * For more info see C++ class 'WebUILoginView' which calls this method. 890 * For more info see C++ class 'WebUILoginView' which calls this method.
889 * @param {number} error Error code. 891 * @param {number} error Error code.
890 * @param {string} url The URL that failed to load. 892 * @param {string} url The URL that failed to load.
891 */ 893 */
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 } 936 }
935 937
936 this.classList.toggle('whitelist-error', show); 938 this.classList.toggle('whitelist-error', show);
937 this.loading = !show; 939 this.loading = !show;
938 940
939 if (!show) 941 if (!show)
940 Oobe.showSigninUI(); 942 Oobe.showSigninUI();
941 } 943 }
942 }; 944 };
943 }); 945 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698