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

Unified Diff: chromeos/login/auth/user_context.cc

Issue 2208583006: UMA for pin unlock success/failure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fixed patch set 9 errors. Created 4 years, 4 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 | « chromeos/login/auth/user_context.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/auth/user_context.cc
diff --git a/chromeos/login/auth/user_context.cc b/chromeos/login/auth/user_context.cc
index 7eed5e08d7fad925222fca049e7823ec5ac4f6ef..b7f0ef2785137dd46dc45af8f3c9fb585e63653b 100644
--- a/chromeos/login/auth/user_context.cc
+++ b/chromeos/login/auth/user_context.cc
@@ -17,6 +17,7 @@ UserContext::UserContext(const UserContext& other)
access_token_(other.access_token_),
user_id_hash_(other.user_id_hash_),
is_using_oauth_(other.is_using_oauth_),
+ is_using_pin_(other.is_using_pin_),
auth_flow_(other.auth_flow_),
user_type_(other.user_type_),
public_session_locale_(other.public_session_locale_),
@@ -93,6 +94,10 @@ bool UserContext::IsUsingOAuth() const {
return is_using_oauth_;
}
+bool UserContext::IsUsingPin() const {
+ return is_using_pin_;
+}
+
UserContext::AuthFlow UserContext::GetAuthFlow() const {
return auth_flow_;
}
@@ -150,6 +155,10 @@ void UserContext::SetIsUsingOAuth(bool is_using_oauth) {
is_using_oauth_ = is_using_oauth;
}
+void UserContext::SetIsUsingPin(bool is_using_pin) {
+ is_using_pin_ = is_using_pin;
+}
+
void UserContext::SetAuthFlow(AuthFlow auth_flow) {
auth_flow_ = auth_flow;
}
« no previous file with comments | « chromeos/login/auth/user_context.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698