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

Side by Side Diff: chrome/browser/resources/login/display_manager.js

Issue 341453002: [multi-profiles] Allow bringing up sign in UI even if all users are restricted per their policies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 Display manager for WebUI OOBE and login. 6 * @fileoverview Display manager for WebUI OOBE and login.
7 */ 7 */
8 8
9 // TODO(xiyuan): Find a better to share those constants. 9 // TODO(xiyuan): Find a better to share those constants.
10 /** @const */ var SCREEN_OOBE_NETWORK = 'connect'; 10 /** @const */ var SCREEN_OOBE_NETWORK = 'connect';
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 DisplayManager.showTpmError = function() { 967 DisplayManager.showTpmError = function() {
968 login.TPMErrorMessageScreen.show(); 968 login.TPMErrorMessageScreen.show();
969 }; 969 };
970 970
971 /** 971 /**
972 * Clears error bubble. 972 * Clears error bubble.
973 */ 973 */
974 DisplayManager.clearErrors = function() { 974 DisplayManager.clearErrors = function() {
975 $('bubble').hide(); 975 $('bubble').hide();
976 this.errorMessageWasShownForTesting_ = false; 976 this.errorMessageWasShownForTesting_ = false;
977
978 var bubbles = document.querySelectorAll('.bubble-shown');
979 for (var i = 0; i < bubbles.length; ++i)
980 bubbles[i].classList.remove('bubble-shown');
977 }; 981 };
978 982
979 /** 983 /**
980 * Sets text content for a div with |labelId|. 984 * Sets text content for a div with |labelId|.
981 * @param {string} labelId Id of the label div. 985 * @param {string} labelId Id of the label div.
982 * @param {string} labelText Text for the label. 986 * @param {string} labelText Text for the label.
983 */ 987 */
984 DisplayManager.setLabelText = function(labelId, labelText) { 988 DisplayManager.setLabelText = function(labelId, labelText) {
985 $(labelId).textContent = labelText; 989 $(labelId).textContent = labelText;
986 }; 990 };
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 */ 1024 */
1021 DisplayManager.refocusCurrentPod = function() { 1025 DisplayManager.refocusCurrentPod = function() {
1022 $('pod-row').refocusCurrentPod(); 1026 $('pod-row').refocusCurrentPod();
1023 }; 1027 };
1024 1028
1025 // Export 1029 // Export
1026 return { 1030 return {
1027 DisplayManager: DisplayManager 1031 DisplayManager: DisplayManager
1028 }; 1032 };
1029 }); 1033 });
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/users/user_manager_impl.cc ('k') | chrome/browser/resources/login/user_pod_row.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698