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);
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) {