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

Side by Side Diff: chrome/browser/resources/user_manager/user_manager.js

Issue 840673004: The User Manager needs to use profile paths not display names for profile switching (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests on windows too. paths. sigh. Created 5 years, 11 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 | « no previous file | chrome/browser/ui/webui/signin/user_manager_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <include src="../../../../ui/login/screen.js"> 4 <include src="../../../../ui/login/screen.js">
5 <include src="../../../../ui/login/bubble.js"> 5 <include src="../../../../ui/login/bubble.js">
6 <include src="../../../../ui/login/login_ui_tools.js"> 6 <include src="../../../../ui/login/login_ui_tools.js">
7 <include src="../../../../ui/login/display_manager.js"> 7 <include src="../../../../ui/login/display_manager.js">
8 <include src="control_bar.js"> 8 <include src="control_bar.js">
9 <include src="../../../../ui/login/account_picker/screen_account_picker.js"> 9 <include src="../../../../ui/login/account_picker/screen_account_picker.js">
10 <include src="../../../../ui/login/account_picker/user_pod_row.js"> 10 <include src="../../../../ui/login/account_picker/user_pod_row.js">
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // make sense when displayed as a widget. 51 // make sense when displayed as a widget.
52 document.addEventListener('contextmenu', function(e) {e.preventDefault();}); 52 document.addEventListener('contextmenu', function(e) {e.preventDefault();});
53 53
54 var hash = window.location.hash; 54 var hash = window.location.hash;
55 if (hash && hash == '#tutorial') 55 if (hash && hash == '#tutorial')
56 UserManagerTutorial.startTutorial(); 56 UserManagerTutorial.startTutorial();
57 }; 57 };
58 58
59 /** 59 /**
60 * Open a new browser for the given profile. 60 * Open a new browser for the given profile.
61 * @param {string} email The user's email, if signed in. 61 * @param {string} profilePath The profile's path.
62 * @param {string} displayName The user's display name.
63 */ 62 */
64 Oobe.launchUser = function(email, displayName) { 63 Oobe.launchUser = function(profilePath) {
65 chrome.send('launchUser', [email, displayName]); 64 chrome.send('launchUser', [profilePath]);
66 }; 65 };
67 66
68 /** 67 /**
69 * Disables signin UI. 68 * Disables signin UI.
70 */ 69 */
71 Oobe.disableSigninUI = function() { 70 Oobe.disableSigninUI = function() {
72 DisplayManager.disableSigninUI(); 71 DisplayManager.disableSigninUI();
73 }; 72 };
74 73
75 /** 74 /**
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Allow selection events on components with editable text (password field) 154 // Allow selection events on components with editable text (password field)
156 // bug (http://code.google.com/p/chromium/issues/detail?id=125863) 155 // bug (http://code.google.com/p/chromium/issues/detail?id=125863)
157 disableTextSelectAndDrag(function(e) { 156 disableTextSelectAndDrag(function(e) {
158 var src = e.target; 157 var src = e.target;
159 return src instanceof HTMLTextAreaElement || 158 return src instanceof HTMLTextAreaElement ||
160 src instanceof HTMLInputElement && 159 src instanceof HTMLInputElement &&
161 /text|password|search/.test(src.type); 160 /text|password|search/.test(src.type);
162 }); 161 });
163 162
164 document.addEventListener('DOMContentLoaded', UserManager.initialize); 163 document.addEventListener('DOMContentLoaded', UserManager.initialize);
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/signin/user_manager_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698