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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 2687693002: Linux/Windows: Setting focus to the first profile in profile switcher (Closed)
Patch Set: Renaming |focus_first_profile| to |is_source_keyboard| Created 3 years, 10 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
Index: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 196f4242a89a52043096808206388f69e533e884..24ea2759c5623245a11f7889a7f12b34217e469d 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -2469,7 +2469,8 @@ void BrowserView::UpdateAcceleratorMetrics(const ui::Accelerator& accelerator,
void BrowserView::ShowAvatarBubbleFromAvatarButton(
AvatarBubbleMode mode,
const signin::ManageAccountsParams& manage_accounts_params,
- signin_metrics::AccessPoint access_point) {
+ signin_metrics::AccessPoint access_point,
+ bool focus_first_profile_button) {
#if !defined(OS_CHROMEOS)
// Do not show avatar bubble if there is no avatar menu button.
if (!frame_->GetNewAvatarMenuButton())
@@ -2484,7 +2485,8 @@ void BrowserView::ShowAvatarBubbleFromAvatarButton(
} else {
ProfileChooserView::ShowBubble(bubble_view_mode, tutorial_mode,
manage_accounts_params, access_point,
- frame_->GetNewAvatarMenuButton(), browser());
+ frame_->GetNewAvatarMenuButton(), browser(),
+ focus_first_profile_button);
ProfileMetrics::LogProfileOpenMethod(ProfileMetrics::ICON_AVATAR_BUBBLE);
}
#else
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/browser/ui/views/profiles/profile_chooser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698