| Index: chrome/browser/profiles/avatar_menu.cc
|
| diff --git a/chrome/browser/profiles/avatar_menu.cc b/chrome/browser/profiles/avatar_menu.cc
|
| index f4eeff9dae9fcfb0522e351b1909e5edbc9f0ef7..e26da20f5435063fe8dfeb43a98af40c6c8851db 100644
|
| --- a/chrome/browser/profiles/avatar_menu.cc
|
| +++ b/chrome/browser/profiles/avatar_menu.cc
|
| @@ -112,7 +112,9 @@ bool AvatarMenu::CompareItems(const Item* item1, const Item* item2) {
|
| base::i18n::ToLower(item2->name)) < 0;
|
| }
|
|
|
| -void AvatarMenu::SwitchToProfile(size_t index, bool always_create) {
|
| +void AvatarMenu::SwitchToProfile(size_t index,
|
| + bool always_create,
|
| + ProfileMetrics::ProfileOpen metric) {
|
| DCHECK(profiles::IsMultipleProfilesEnabled() ||
|
| index == GetActiveProfileIndex());
|
| const Item& item = GetItemAt(index);
|
| @@ -133,8 +135,8 @@ void AvatarMenu::SwitchToProfile(size_t index, bool always_create) {
|
| desktop_type = browser_->host_desktop_type();
|
|
|
| profiles::SwitchToProfile(path, desktop_type, always_create,
|
| - profiles::ProfileSwitchingDoneCallback());
|
| - ProfileMetrics::LogProfileSwitchUser(ProfileMetrics::SWITCH_PROFILE_ICON);
|
| + profiles::ProfileSwitchingDoneCallback(),
|
| + metric);
|
| }
|
|
|
| void AvatarMenu::AddNewProfile(ProfileMetrics::ProfileAdd type) {
|
|
|