Commit 4e2a3b71 authored by anthonyvd's avatar anthonyvd Committed by Commit bot

Enable right click user switching by default.

This is the first step in removing the flag entirely.

BUG=457462

Review URL: https://codereview.chromium.org/931233004

Cr-Commit-Position: refs/heads/master@{#316959}
parent 885330e8
...@@ -509,10 +509,7 @@ void BubbleViewModeFromAvatarBubbleMode( ...@@ -509,10 +509,7 @@ void BubbleViewModeFromAvatarBubbleMode(
*tutorial_mode = TUTORIAL_MODE_SHOW_ERROR; *tutorial_mode = TUTORIAL_MODE_SHOW_ERROR;
return; return;
case BrowserWindow::AVATAR_BUBBLE_MODE_FAST_USER_SWITCH: case BrowserWindow::AVATAR_BUBBLE_MODE_FAST_USER_SWITCH:
if (switches::IsFastUserSwitching()) *bubble_view_mode = profiles::BUBBLE_VIEW_MODE_FAST_PROFILE_CHOOSER;
*bubble_view_mode = profiles::BUBBLE_VIEW_MODE_FAST_PROFILE_CHOOSER;
else
*bubble_view_mode = profiles::BUBBLE_VIEW_MODE_PROFILE_CHOOSER;
return; return;
default: default:
*bubble_view_mode = profiles::BUBBLE_VIEW_MODE_PROFILE_CHOOSER; *bubble_view_mode = profiles::BUBBLE_VIEW_MODE_PROFILE_CHOOSER;
......
...@@ -335,11 +335,9 @@ void OpaqueBrowserFrameView::ButtonPressed(views::Button* sender, ...@@ -335,11 +335,9 @@ void OpaqueBrowserFrameView::ButtonPressed(views::Button* sender,
BrowserWindow::AVATAR_BUBBLE_MODE_FAST_USER_SWITCH : BrowserWindow::AVATAR_BUBBLE_MODE_FAST_USER_SWITCH :
BrowserWindow::AVATAR_BUBBLE_MODE_DEFAULT; BrowserWindow::AVATAR_BUBBLE_MODE_DEFAULT;
if (switches::IsFastUserSwitching() || !isRightClick) { browser_view()->ShowAvatarBubbleFromAvatarButton(
browser_view()->ShowAvatarBubbleFromAvatarButton( mode,
mode, signin::ManageAccountsParams());
signin::ManageAccountsParams());
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment