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

Side by Side 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 on ToT and cleaned up comments and unrelated changes. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 int wallpaper_index) OVERRIDE; 68 int wallpaper_index) OVERRIDE;
69 virtual void SaveUserDefaultImageIndex(const std::string& username, 69 virtual void SaveUserDefaultImageIndex(const std::string& username,
70 int image_index) OVERRIDE; 70 int image_index) OVERRIDE;
71 virtual void SaveUserImage(const std::string& username, 71 virtual void SaveUserImage(const std::string& username,
72 const SkBitmap& image) OVERRIDE; 72 const SkBitmap& image) OVERRIDE;
73 virtual void SaveUserImageFromFile(const std::string& username, 73 virtual void SaveUserImageFromFile(const std::string& username,
74 const FilePath& path) OVERRIDE; 74 const FilePath& path) OVERRIDE;
75 virtual void SaveUserImageFromProfileImage( 75 virtual void SaveUserImageFromProfileImage(
76 const std::string& username) OVERRIDE; 76 const std::string& username) OVERRIDE;
77 virtual void DownloadProfileImage(const std::string& reason) OVERRIDE; 77 virtual void DownloadProfileImage(const std::string& reason) OVERRIDE;
78 virtual void LoadKeyStore() OVERRIDE;
78 virtual bool IsCurrentUserOwner() const OVERRIDE; 79 virtual bool IsCurrentUserOwner() const OVERRIDE;
79 virtual bool IsCurrentUserNew() const OVERRIDE; 80 virtual bool IsCurrentUserNew() const OVERRIDE;
80 virtual bool IsCurrentUserEphemeral() const OVERRIDE; 81 virtual bool IsCurrentUserEphemeral() const OVERRIDE;
81 virtual bool IsUserLoggedIn() const OVERRIDE; 82 virtual bool IsUserLoggedIn() const OVERRIDE;
82 virtual bool IsLoggedInAsDemoUser() const OVERRIDE; 83 virtual bool IsLoggedInAsDemoUser() const OVERRIDE;
83 virtual bool IsLoggedInAsGuest() const OVERRIDE; 84 virtual bool IsLoggedInAsGuest() const OVERRIDE;
84 virtual bool IsLoggedInAsStub() const OVERRIDE; 85 virtual bool IsLoggedInAsStub() const OVERRIDE;
85 virtual void AddObserver(Observer* obs) OVERRIDE; 86 virtual void AddObserver(Observer* obs) OVERRIDE;
86 virtual void RemoveObserver(Observer* obs) OVERRIDE; 87 virtual void RemoveObserver(Observer* obs) OVERRIDE;
87 virtual void NotifyLocalStateChanged() OVERRIDE; 88 virtual void NotifyLocalStateChanged() OVERRIDE;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // Cached flag of whether the currently logged-in user existed before this 224 // Cached flag of whether the currently logged-in user existed before this
224 // login. 225 // login.
225 bool is_current_user_new_; 226 bool is_current_user_new_;
226 227
227 // Cached flag of whether the currently logged-in user is ephemeral. Storage 228 // Cached flag of whether the currently logged-in user is ephemeral. Storage
228 // of persistent information is avoided for such users by not adding them to 229 // of persistent information is avoided for such users by not adding them to
229 // the user list in local state, not downloading their custom user images and 230 // the user list in local state, not downloading their custom user images and
230 // mounting their cryptohomes using tmpfs. 231 // mounting their cryptohomes using tmpfs.
231 bool is_current_user_ephemeral_; 232 bool is_current_user_ephemeral_;
232 233
234 // The key store for the current user has been loaded. This flag is needed to
235 // ensure that the key store will not be loaded twice in the policy recovery
236 // "safe-mode".
237 bool key_store_loaded_;
233 // Cached flag indicating whether ephemeral users are enabled. Defaults to 238 // Cached flag indicating whether ephemeral users are enabled. Defaults to
234 // |false| if the value has not been read from trusted device policy yet. 239 // |false| if the value has not been read from trusted device policy yet.
235 bool ephemeral_users_enabled_; 240 bool ephemeral_users_enabled_;
236 241
237 // Cached name of device owner. Defaults to empty string if the value has not 242 // Cached name of device owner. Defaults to empty string if the value has not
238 // been read from trusted device policy yet. 243 // been read from trusted device policy yet.
239 std::string owner_email_; 244 std::string owner_email_;
240 245
241 content::NotificationRegistrar registrar_; 246 content::NotificationRegistrar registrar_;
242 247
(...skipping 23 matching lines...) Expand all
266 271
267 // Data URL for |downloaded_profile_image_|. 272 // Data URL for |downloaded_profile_image_|.
268 std::string downloaded_profile_image_data_url_; 273 std::string downloaded_profile_image_data_url_;
269 274
270 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); 275 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl);
271 }; 276 };
272 277
273 } // namespace chromeos 278 } // namespace chromeos
274 279
275 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ 280 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698