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

Unified Diff: chrome/browser/signin/signin_header_helper.h

Issue 288493008: UMA Metrics for the user menu, including vasquette-detection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
« no previous file with comments | « chrome/browser/signin/signin_global_error.cc ('k') | chrome/browser/signin/signin_header_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/signin_header_helper.h
diff --git a/chrome/browser/signin/signin_header_helper.h b/chrome/browser/signin/signin_header_helper.h
index 0b0257b63d299f13c7eb40a7e9326759ea415e1e..3c10c0c0888c15962076fb0be0c728d74948f71d 100644
--- a/chrome/browser/signin/signin_header_helper.h
+++ b/chrome/browser/signin/signin_header_helper.h
@@ -19,7 +19,7 @@ class ProfileIOData;
namespace signin {
// Profile mode flags.
-enum PROFILE_MODE {
+enum ProfileMode {
PROFILE_MODE_DEFAULT = 0,
// Incognito mode disabled by enterprise policy or by parental controls.
PROFILE_MODE_INCOGNITO_DISABLED = 1 << 0,
@@ -27,6 +27,18 @@ enum PROFILE_MODE {
PROFILE_MODE_ADD_ACCOUNT_DISABLED = 1 << 1
};
+// The ServiceType specified by GAIA in the response header accompanying the 204
+// response. This indicates the action Chrome is supposed to lead the user to
+// perform.
+enum GAIAServiceType {
+ GAIA_SERVICE_TYPE_NONE = 0, // No GAIA response header.
+ GAIA_SERVICE_TYPE_SIGNOUT, // Logout all existing sessions.
+ GAIA_SERVICE_TYPE_SIGNOUTOPTIONS_INCOGNITO, // Open an incognito tab.
+ GAIA_SERVICE_TYPE_ADDSESSION, // Add a secondary account.
+ GAIA_SERVICE_TYPE_REAUTH, // Re-authenticate an account.
+ GAIA_SERVICE_TYPE_DEFAULT, // All other cases.
+};
+
// Add X-Chrome-Connected header to all Gaia requests from a connected profile,
// with the exception of requests from gaia webview. Must be called on IO
// thread.
« no previous file with comments | « chrome/browser/signin/signin_global_error.cc ('k') | chrome/browser/signin/signin_header_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698