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

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

Issue 1151513002: ChromeOS Offline gaia: Don't do reload when using local (offline) gaia (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « chrome/browser/chromeos/login/login_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 } else { 789 } else {
790 Oobe.showSigninUI(); 790 Oobe.showSigninUI();
791 } 791 }
792 } 792 }
793 }, 793 },
794 794
795 /** 795 /**
796 * Reloads extension frame. 796 * Reloads extension frame.
797 */ 797 */
798 doReload: function() { 798 doReload: function() {
799 if (this.isLocal)
800 return;
799 this.error_ = 0; 801 this.error_ = 0;
800 this.gaiaAuthHost_.reload(); 802 this.gaiaAuthHost_.reload();
801 this.loading = true; 803 this.loading = true;
802 this.startLoadingTimer_(); 804 this.startLoadingTimer_();
803 }, 805 },
804 806
805 /** 807 /**
806 * Updates localized content of the screen that is not updated via template. 808 * Updates localized content of the screen that is not updated via template.
807 */ 809 */
808 updateLocalizedContent: function() { 810 updateLocalizedContent: function() {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 } 937 }
936 938
937 this.classList.toggle('whitelist-error', show); 939 this.classList.toggle('whitelist-error', show);
938 this.loading = !show; 940 this.loading = !show;
939 941
940 if (!show) 942 if (!show)
941 Oobe.showSigninUI(); 943 Oobe.showSigninUI();
942 } 944 }
943 }; 945 };
944 }); 946 });
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698