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

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

Issue 11415201: Fixed guest browsing and offline login links. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/error_screen_handler.cc » ('j') | 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 Offline message screen implementation. 6 * @fileoverview Offline message screen implementation.
7 */ 7 */
8 8
9 cr.define('login', function() { 9 cr.define('login', function() {
10 // Screens that should have offline message overlay. 10 // Screens that should have offline message overlay.
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 $('error-offline-login-link').onclick = function() { 119 $('error-offline-login-link').onclick = function() {
120 chrome.send('offlineLogin'); 120 chrome.send('offlineLogin');
121 }; 121 };
122 }, 122 },
123 123
124 onBeforeShow: function(lastNetworkType) { 124 onBeforeShow: function(lastNetworkType) {
125 var currentScreen = Oobe.getInstance().currentScreen; 125 var currentScreen = Oobe.getInstance().currentScreen;
126 126
127 cr.ui.DropDown.show('offline-networks-list', false, lastNetworkType); 127 cr.ui.DropDown.show('offline-networks-list', false, lastNetworkType);
128 128
129 $('error-guest-signin').hidden = $('guestSignin').hidden || 129 $('error-guest-signin').hidden = $('guestSignin').hidden;
130 !$('add-user-header-bar-item').hidden;
131 130
132 $('error-offline-login').hidden = !currentScreen.isOfflineAllowed; 131 $('error-offline-login').hidden = !currentScreen.isOfflineAllowed;
133 }, 132 },
134 133
135 onBeforeHide: function() { 134 onBeforeHide: function() {
136 cr.ui.DropDown.hide('offline-networks-list'); 135 cr.ui.DropDown.hide('offline-networks-list');
137 }, 136 },
138 137
139 /** 138 /**
140 * Prepares error screen to show proxy error. 139 * Prepares error screen to show proxy error.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 * via template. 321 * via template.
323 */ 322 */
324 ErrorMessageScreen.updateLocalizedContent = function() { 323 ErrorMessageScreen.updateLocalizedContent = function() {
325 $('error-message').updateLocalizedContent_(); 324 $('error-message').updateLocalizedContent_();
326 }; 325 };
327 326
328 return { 327 return {
329 ErrorMessageScreen: ErrorMessageScreen 328 ErrorMessageScreen: ErrorMessageScreen
330 }; 329 };
331 }); 330 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/error_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698