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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 302603013: UMA for modifying the profile image/name in the menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit Created 6 years, 7 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/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..7439bea913d409ef11a094bb14ffe76ed3176420 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.
@@ -777,6 +778,7 @@ bool ProfileChooserView::HandleKeyEvent(views::Textfield* sender,
return true;
profiles::UpdateProfileName(profile, new_profile_name);
+ PostActionPerformed(ProfileMetrics::PROFILE_DESKTOP_MENU_EDIT_NAME);
current_profile_name_->ShowReadOnlyView();
return true;
}

Powered by Google App Engine
This is Rietveld 408576698