Index: chrome/browser/ui/views/profiles/profile_chooser_view.cc |
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc |
index 834377fd581d761e8bb6186b1650e99a8cc6cf60..534f26b67fecfe3d5ff108a3d55949aa08743e9b 100644 |
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc |
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc |
@@ -671,6 +671,7 @@ void ProfileChooserView::ButtonPressed(views::Button* sender, |
} else if (current_profile_photo_ && |
sender == current_profile_photo_->change_photo_button()) { |
avatar_menu_->EditProfile(avatar_menu_->GetActiveProfileIndex()); |
+ PostActionPerformed(ProfileMetrics::PROFILE_DESKTOP_MENU_EDIT_IMAGE); |
} else if (sender == signin_current_profile_link_) { |
// Only show the inline signin if the new UI flag is flipped. Otherwise, |
// use the tab signin page. |
@@ -776,6 +777,7 @@ bool ProfileChooserView::HandleKeyEvent(views::Textfield* sender, |
if (profile->IsManaged()) |
return true; |
+ PostActionPerformed(ProfileMetrics::PROFILE_DESKTOP_MENU_EDIT_NAME); |
guohui
2014/05/28 18:08:26
nits: the name "PostAction" suggests that it shoul
Mike Lerman
2014/05/28 18:11:50
Done.
|
profiles::UpdateProfileName(profile, new_profile_name); |
current_profile_name_->ShowReadOnlyView(); |
return true; |