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

Unified Diff: chrome/browser/chromeos/login/user_manager_impl.h

Issue 9466005: Make sure the device recovers from policy loss in the consumer case. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to ToT and cleaned up the unit tests. Created 8 years, 9 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/chromeos/login/user_manager.h ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user_manager_impl.h
diff --git a/chrome/browser/chromeos/login/user_manager_impl.h b/chrome/browser/chromeos/login/user_manager_impl.h
index 22fab8665347c67a57d3f50ac95beb23c67b27d6..4ea0eacb211bccf7984de39b71b766dcfa0ba87e 100644
--- a/chrome/browser/chromeos/login/user_manager_impl.h
+++ b/chrome/browser/chromeos/login/user_manager_impl.h
@@ -74,6 +74,7 @@ class UserManagerImpl : public UserManager,
virtual void SaveUserImageFromProfileImage(
const std::string& username) OVERRIDE;
virtual void DownloadProfileImage(const std::string& reason) OVERRIDE;
+ virtual void LoadKeyStore() OVERRIDE;
virtual bool IsCurrentUserOwner() const OVERRIDE;
virtual bool IsCurrentUserNew() const OVERRIDE;
virtual bool IsCurrentUserEphemeral() const OVERRIDE;
@@ -229,6 +230,10 @@ class UserManagerImpl : public UserManager,
// mounting their cryptohomes using tmpfs.
bool is_current_user_ephemeral_;
+ // The key store for the current user has been loaded. This flag is needed to
+ // ensure that the key store will not be loaded twice in the policy recovery
+ // "safe-mode".
+ bool key_store_loaded_;
// Cached flag indicating whether ephemeral users are enabled. Defaults to
// |false| if the value has not been read from trusted device policy yet.
bool ephemeral_users_enabled_;
« no previous file with comments | « chrome/browser/chromeos/login/user_manager.h ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698