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

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

Issue 132453004: Add Profile metric counting to new User Manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added stat on number of profile-manager opens Created 6 years, 11 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/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profile_chooser_view.cc b/chrome/browser/ui/views/profile_chooser_view.cc
index a50e62de3d57ebe85ef0082b90ae583293440dc2..de5547638da136e481fecb0626de3176de4ae836 100644
--- a/chrome/browser/ui/views/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profile_chooser_view.cc
@@ -523,6 +523,7 @@ void ProfileChooserView::ButtonPressed(views::Button* sender,
if (sender == guest_button_) {
profiles::SwitchToGuestProfile(browser_->host_desktop_type(),
profiles::ProfileSwitchingDoneCallback());
+ ProfileMetrics::LogProfileSwitchUser(ProfileMetrics::SWITCH_PROFILE_GUEST);
} else if (sender == end_guest_button_) {
profiles::CloseGuestProfileWindows();
} else if (sender == users_button_) {
@@ -537,6 +538,7 @@ void ProfileChooserView::ButtonPressed(views::Button* sender,
profiles::CreateAndSwitchToNewProfile(
browser_->host_desktop_type(),
profiles::ProfileSwitchingDoneCallback());
+ ProfileMetrics::LogProfileAddNewUser(ProfileMetrics::ADD_NEW_USER_ICON);
} else if (sender == add_account_button_) {
ShowView(GAIA_ADD_ACCOUNT_VIEW, avatar_menu_.get());
} else if (sender == current_profile_photo_->change_photo_button()) {
@@ -549,6 +551,7 @@ void ProfileChooserView::ButtonPressed(views::Button* sender,
avatar_menu_->SwitchToProfile(
match->second,
ui::DispositionFromEventFlags(event.flags()) == NEW_WINDOW);
+ ProfileMetrics::LogProfileSwitchUser(ProfileMetrics::SWITCH_PROFILE_ICON);
}
}

Powered by Google App Engine
This is Rietveld 408576698