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

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

Issue 2798023005: Force encryption migration if the device supports ARC. (Closed)
Patch Set: Bind |auth_mode| Created 3 years, 8 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 62803c722898940576ce83916bb425ae5dab9c7b..f5bdd136648dfe7eaf4e0e99a6b02afe09d58d99 100644
--- a/chromeos/login/auth/user_context.cc
+++ b/chromeos/login/auth/user_context.cc
@@ -18,6 +18,7 @@ UserContext::UserContext(const UserContext& other)
user_id_hash_(other.user_id_hash_),
is_using_oauth_(other.is_using_oauth_),
is_using_pin_(other.is_using_pin_),
+ is_forcing_dircrypto_(other.is_forcing_dircrypto_),
auth_flow_(other.auth_flow_),
user_type_(other.user_type_),
public_session_locale_(other.public_session_locale_),
@@ -98,6 +99,10 @@ bool UserContext::IsUsingPin() const {
return is_using_pin_;
}
+bool UserContext::IsForcingDircrypto() const {
+ return is_forcing_dircrypto_;
+}
+
UserContext::AuthFlow UserContext::GetAuthFlow() const {
return auth_flow_;
}
@@ -159,6 +164,10 @@ void UserContext::SetIsUsingPin(bool is_using_pin) {
is_using_pin_ = is_using_pin;
}
+void UserContext::SetIsForcingDircrypto(bool is_forcing_dircrypto) {
+ is_forcing_dircrypto_ = is_forcing_dircrypto;
+}
+
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