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

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: Now with proper testing. 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
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 1abfdcc7c55a6f9f443a012aba108ed8d83db561..4d94283576a4f08bbf13aefb95da63b4c1296ace 100644
--- a/chrome/browser/chromeos/login/user_manager_impl.h
+++ b/chrome/browser/chromeos/login/user_manager_impl.h
@@ -69,6 +69,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 IsUserLoggedIn() const OVERRIDE;
@@ -206,6 +207,11 @@ class UserManagerImpl : public UserManager,
// Cached flag of whether any user is logged in at the moment.
bool is_user_logged_in_;
+ // 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_;
+
content::NotificationRegistrar registrar_;
// Profile sync service which is observed to take actions after sync

Powered by Google App Engine
This is Rietveld 408576698