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

Unified Diff: chrome/browser/ui/webui/signin/inline_login_handler.cc

Issue 2384233002: Don't record re-auths, unlocks, or secondary account additions in Signin.SigninStartedAccessPoint (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/signin/inline_login_handler.cc
diff --git a/chrome/browser/ui/webui/signin/inline_login_handler.cc b/chrome/browser/ui/webui/signin/inline_login_handler.cc
index e13188bb5b8b210aba12d7c4d4384db8842c2c17..3f7b633eb371c34f8258d3edc9c1ee0058706b3a 100644
--- a/chrome/browser/ui/webui/signin/inline_login_handler.cc
+++ b/chrome/browser/ui/webui/signin/inline_login_handler.cc
@@ -195,15 +195,20 @@ void InlineLoginHandler::ContinueHandleInitializeMessage() {
const GURL& current_url = web_ui()->GetWebContents()->GetURL();
signin_metrics::AccessPoint access_point =
signin::GetAccessPointForPromoURL(current_url);
- signin_metrics::LogSigninAccessPointStarted(access_point);
+ signin_metrics::Reason reason =
+ signin::GetSigninReasonForPromoURL(current_url);
+
+ if (reason != signin_metrics::Reason::REASON_REAUTHENTICATION ||
+ reason != signin_metrics::Reason::REASON_UNLOCK ||
+ reason != signin_metrics::Reason::REASON_ADD_SECONDARY_ACCOUNT) {
brucedawson 2016/10/11 20:22:01 Tautology error detected. |reason| will always be
+ signin_metrics::LogSigninAccessPointStarted(access_point);
+ }
RecordSigninUserActionForAccessPoint(access_point);
content::RecordAction(base::UserMetricsAction("Signin_SigninPage_Loading"));
params.SetString("continueUrl", signin::GetLandingURL(access_point).spec());
Profile* profile = Profile::FromWebUI(web_ui());
- signin_metrics::Reason reason =
- signin::GetSigninReasonForPromoURL(current_url);
std::string default_email;
if (reason == signin_metrics::Reason::REASON_SIGNIN_PRIMARY_ACCOUNT) {
default_email =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698