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

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

Issue 2798023005: Force encryption migration if the device supports ARC. (Closed)
Patch Set: 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
Index: chromeos/login/auth/user_context.h
diff --git a/chromeos/login/auth/user_context.h b/chromeos/login/auth/user_context.h
index c301192853622868041a541bc780c231549d390e..88cb42d9e5af4c6d94ab939561dbc24b894079ee 100644
--- a/chromeos/login/auth/user_context.h
+++ b/chromeos/login/auth/user_context.h
@@ -58,6 +58,7 @@ class CHROMEOS_EXPORT UserContext {
const std::string& GetUserIDHash() const;
bool IsUsingOAuth() const;
bool IsUsingPin() const;
+ bool IsForcingDircrypto() const;
AuthFlow GetAuthFlow() const;
user_manager::UserType GetUserType() const;
const std::string& GetPublicSessionLocale() const;
@@ -75,6 +76,7 @@ class CHROMEOS_EXPORT UserContext {
void SetUserIDHash(const std::string& user_id_hash);
void SetIsUsingOAuth(bool is_using_oauth);
void SetIsUsingPin(bool is_using_pin);
+ void SetIsForcingDircrypto(bool is_forcing_dircrypto);
void SetAuthFlow(AuthFlow auth_flow);
void SetUserType(user_manager::UserType user_type);
void SetPublicSessionLocale(const std::string& locale);
@@ -93,6 +95,7 @@ class CHROMEOS_EXPORT UserContext {
std::string user_id_hash_;
bool is_using_oauth_ = true;
bool is_using_pin_ = false;
+ bool is_forcing_dircrypto_ = false;
AuthFlow auth_flow_ = AUTH_FLOW_OFFLINE;
user_manager::UserType user_type_ = user_manager::USER_TYPE_REGULAR;
std::string public_session_locale_;

Powered by Google App Engine
This is Rietveld 408576698