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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.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/browser/ui/browser_commands.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc
index 32683c1535109142d32b245c2126ff373f37e3ef..378448f67213980245258338e3dae0a31dc4f99b 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc
@@ -456,7 +456,12 @@ gfx::ImageSkia BrowserNonClientFrameViewAsh::GetFaviconForTabIconView() {
void BrowserNonClientFrameViewAsh::ButtonPressed(views::Button* sender,
const ui::Event& event) {
DCHECK(sender == new_avatar_button());
- chrome::ExecuteCommand(browser_view()->browser(), IDC_SHOW_AVATAR_MENU);
+ int command = IDC_SHOW_AVATAR_MENU;
+ if (event.IsMouseEvent() &&
+ static_cast<const ui::MouseEvent&>(event).IsRightMouseButton()) {
+ command = IDC_SHOW_FAST_USER_SWITCHER;
+ }
+ chrome::ExecuteCommand(browser_view()->browser(), command);
}
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698