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

Unified Diff: chrome/browser/ui/browser_window.h

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
« no previous file with comments | « chrome/browser/ui/browser_mac.cc ('k') | chrome/browser/ui/chrome_pages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_window.h
diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h
index 668a98c891f48ebc5504f6d23196e73067e9882b..3301b134693235f27314639adda40c3e724e7dfe 100644
--- a/chrome/browser/ui/browser_window.h
+++ b/chrome/browser/ui/browser_window.h
@@ -57,6 +57,10 @@ class Rect;
class Size;
}
+namespace signin_metrics {
+enum class AccessPoint;
+}
+
namespace web_modal {
class WebContentsModalDialogHost;
}
@@ -363,6 +367,8 @@ class BrowserWindow : public ui::BaseWindow {
// Shows the avatar bubble on the window frame off of the avatar button with
// the given mode. The Service Type specified by GAIA is provided as well.
+ // |access_point| indicates the access point used to open the Gaia sign in
+ // page.
enum AvatarBubbleMode {
AVATAR_BUBBLE_MODE_DEFAULT,
AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT,
@@ -373,11 +379,17 @@ class BrowserWindow : public ui::BaseWindow {
AVATAR_BUBBLE_MODE_SHOW_ERROR,
AVATAR_BUBBLE_MODE_FAST_USER_SWITCH,
};
- virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode,
- const signin::ManageAccountsParams& manage_accounts_params) = 0;
+ virtual void ShowAvatarBubbleFromAvatarButton(
+ AvatarBubbleMode mode,
+ const signin::ManageAccountsParams& manage_accounts_params,
+ signin_metrics::AccessPoint access_point) = 0;
// Shows the signin flow for |mode| in a tab-modal dialog.
- virtual void ShowModalSigninWindow(AvatarBubbleMode mode) = 0;
+ // |access_point| indicates the access point used to open the Gaia sign in
+ // page.
+ virtual void ShowModalSigninWindow(
+ AvatarBubbleMode mode,
+ signin_metrics::AccessPoint access_point) = 0;
// Closes the tab-modal signin flow opened with ShowModalSigninWindow, if it's
// open. Does nothing otherwise.
« no previous file with comments | « chrome/browser/ui/browser_mac.cc ('k') | chrome/browser/ui/chrome_pages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698