Index: chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm |
diff --git a/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm |
index 2bbdf0c8351fd7a35134ac150f06ed2f846c2fa4..d719b6e3e02195916bb05b85b3fe4cc310d12292 100644 |
--- a/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm |
+++ b/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm |
@@ -15,6 +15,7 @@ |
#include "chrome/browser/profiles/profile_info_cache.h" |
#include "chrome/browser/profiles/profile_info_util.h" |
#include "chrome/browser/profiles/profile_manager.h" |
+#include "chrome/browser/profiles/profile_metrics.h" |
#include "chrome/browser/profiles/profile_window.h" |
#include "chrome/browser/profiles/profiles_state.h" |
#include "chrome/browser/signin/mutable_profile_oauth2_token_service.h" |
@@ -403,14 +404,16 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver, |
- (IBAction)addNewProfile:(id)sender { |
profiles::CreateAndSwitchToNewProfile( |
browser_->host_desktop_type(), |
- profiles::ProfileSwitchingDoneCallback()); |
+ profiles::ProfileSwitchingDoneCallback(), |
+ ProfileMetrics::ADD_NEW_USER_ICON); |
} |
- (IBAction)switchToProfile:(id)sender { |
// Check the event flags to see if a new window should be created. |
bool always_create = ui::WindowOpenDispositionFromNSEvent( |
[NSApp currentEvent]) == NEW_WINDOW; |
- avatarMenu_->SwitchToProfile([sender tag], always_create); |
+ avatarMenu_->SwitchToProfile([sender tag], always_create, |
+ ProfileMetrics::SWITCH_PROFILE_ICON); |
} |
- (IBAction)showUserManager:(id)sender { |