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

Unified Diff: chrome/browser/ui/browser_command_controller.cc

Issue 1011233002: Enable fast user switching in Win8/Ash mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + fix conflict Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/chrome_command_ids.h ('k') | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_command_controller.cc
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc
index 2d9a41b49cfcbea65dd497bf289d0bf27fd02baa..0d9df2aada4a8df6ab2cb0b6303dd75fbc798093 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -723,6 +723,9 @@ void BrowserCommandController::ExecuteCommandWithDisposition(
case IDC_SHOW_AVATAR_MENU:
ShowAvatarMenu(browser_);
break;
+ case IDC_SHOW_FAST_USER_SWITCHER:
+ ShowFastUserSwitcher(browser_);
+ break;
case IDC_SHOW_HISTORY:
ShowHistory(browser_);
break;
@@ -976,8 +979,10 @@ void BrowserCommandController::InitCommandState() {
command_updater_.UpdateCommandEnabled(IDC_TOUCH_HUD_PROJECTION_TOGGLE, true);
#else
// Chrome OS uses the system tray menu to handle multi-profiles.
- if (normal_window && (guest_session || !profile()->IsOffTheRecord()))
+ if (normal_window && (guest_session || !profile()->IsOffTheRecord())) {
command_updater_.UpdateCommandEnabled(IDC_SHOW_AVATAR_MENU, true);
+ command_updater_.UpdateCommandEnabled(IDC_SHOW_FAST_USER_SWITCHER, true);
+ }
#endif
UpdateShowSyncState(true);
« no previous file with comments | « chrome/app/chrome_command_ids.h ('k') | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698