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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h

Issue 308433002: Desktop Menu UMA for Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename variables; subViews to access profileChooserController for UMA 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/cocoa/profiles/profile_chooser_controller.h
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h
index f92128035a5321bd55cf7f85a683d91a51124650..4773ee95f9d39dbcecafea560ef671f824e8a106 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h
@@ -10,6 +10,8 @@
#include <string>
#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/profiles/profile_metrics.h"
+#include "chrome/browser/signin/signin_header_helper.h"
#include "chrome/browser/ui/profile_chooser_constants.h"
#import "chrome/browser/ui/cocoa/base_bubble_controller.h"
@@ -57,11 +59,15 @@ class WebContents;
// Whether the bubble is displayed for an active guest profile.
BOOL isGuestSession_;
+
+ // The GAIA service type that caused this menu to open.
+ signin::GAIAServiceType serviceType_;
}
- (id)initWithBrowser:(Browser*)browser
anchoredAt:(NSPoint)point
- withMode:(profiles::BubbleViewMode)mode;
+ withMode:(profiles::BubbleViewMode)mode
+ withServiceType:(signin::GAIAServiceType)GAIAServiceType;
// Creates all the subviews of the avatar bubble for |viewToDisplay|.
- (void)initMenuContentsWithView:(profiles::BubbleViewMode)viewToDisplay;
@@ -105,6 +111,9 @@ class WebContents;
// Reset the WebContents used by the Gaia embedded view.
- (void)cleanUpEmbeddedViewContents;
+
+// Clean-up done after an action was performed in the ProfileChooser.
+- (void)postActionPerformed:(ProfileMetrics::ProfileDesktopMenu)action;
@end
// Testing API /////////////////////////////////////////////////////////////////
@@ -112,7 +121,8 @@ class WebContents;
@interface ProfileChooserController (ExposedForTesting)
- (id)initWithBrowser:(Browser*)browser
anchoredAt:(NSPoint)point
- withMode:(profiles::BubbleViewMode)mode;
+ withMode:(profiles::BubbleViewMode)mode
+ withServiceType:(signin::GAIAServiceType)serviceType;
@end
#endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698