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

Unified Diff: chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm

Issue 1473543002: Implement newly designed sign-in related histograms for desktop platorms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 5 years 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/avatar_base_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm b/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm
index abda2f199ab40adeec091312ab9008fb88be5325..24a969d3b7633b21def2302fc77881888d68f160 100644
--- a/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm
@@ -145,7 +145,8 @@ class ProfileInfoUpdateObserver : public ProfileInfoCacheObserver,
- (void)showAvatarBubbleAnchoredAt:(NSView*)anchor
withMode:(BrowserWindow::AvatarBubbleMode)mode
- withServiceType:(signin::GAIAServiceType)serviceType {
+ withServiceType:(signin::GAIAServiceType)serviceType
+ fromAccessPoint:(signin_metrics::AccessPoint)accessPoint {
if (menuController_) {
profiles::BubbleViewMode viewMode;
profiles::TutorialMode tutorialMode;
@@ -196,7 +197,8 @@ class ProfileInfoUpdateObserver : public ProfileInfoCacheObserver,
anchoredAt:point
viewMode:viewMode
tutorialMode:tutorialMode
- serviceType:serviceType];
+ serviceType:serviceType
+ accessPoint:accessPoint];
[[NSNotificationCenter defaultCenter]
addObserver:self
@@ -220,7 +222,9 @@ class ProfileInfoUpdateObserver : public ProfileInfoCacheObserver,
[self showAvatarBubbleAnchoredAt:button_
withMode:mode
- withServiceType:signin::GAIA_SERVICE_TYPE_NONE];
+ withServiceType:signin::GAIA_SERVICE_TYPE_NONE
+ fromAccessPoint:signin_metrics::AccessPoint::
+ ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN];
}
- (IBAction)buttonRightClicked:(id)sender {
@@ -229,7 +233,9 @@ class ProfileInfoUpdateObserver : public ProfileInfoCacheObserver,
[self showAvatarBubbleAnchoredAt:button_
withMode:mode
- withServiceType:signin::GAIA_SERVICE_TYPE_NONE];
+ withServiceType:signin::GAIA_SERVICE_TYPE_NONE
+ fromAccessPoint:signin_metrics::AccessPoint::
+ ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN];
}
- (void)bubbleWillClose:(NSNotification*)notif {

Powered by Google App Engine
This is Rietveld 408576698