Chromium Code Reviews| 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 8ae9adc564f0498d491653f4028a53491661cc13..fdd180bff2c83874e1f0c092ac8df2acc095ff5e 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" |
| @@ -200,14 +201,18 @@ 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( |
|
Alexei Svitkine (slow)
2014/01/28 16:25:31
Same wrapping comment as above. Please fix through
bcwhite
2014/01/28 17:03:03
There is plenty of existing code (like the call to
|
| + [sender tag], |
| + always_create, |
| + ProfileMetrics::SWITCH_PROFILE_ICON); |
| } |
| - (IBAction)showUserManager:(id)sender { |