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

Unified Diff: chrome/browser/policy/device_management_policy_cache.h

Issue 5331008: Persist 'this device is not managed' information (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build on Windows Created 10 years, 1 month 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 | « no previous file | chrome/browser/policy/device_management_policy_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/device_management_policy_cache.h
diff --git a/chrome/browser/policy/device_management_policy_cache.h b/chrome/browser/policy/device_management_policy_cache.h
index ffe63d4e65b0f50eeacdb8429c57436b675e7f60..86ae845309c0bc1d5e724ac22b5bcf540bf29b8b 100644
--- a/chrome/browser/policy/device_management_policy_cache.h
+++ b/chrome/browser/policy/device_management_policy_cache.h
@@ -41,6 +41,11 @@ class DeviceManagementPolicyCache {
// to the caller.
DictionaryValue* GetPolicy();
+ void SetDeviceUnmanaged(bool is_device_unmanaged);
+ bool is_device_unmanaged() const {
+ return is_device_unmanaged_;
+ }
+
// Returns the time as which the policy was last fetched.
base::Time last_policy_refresh_time() const {
return last_policy_refresh_time_;
@@ -77,6 +82,8 @@ class DeviceManagementPolicyCache {
// information loaded from the file.
bool fresh_policy_;
+ bool is_device_unmanaged_;
+
// The time at which the policy was last refreshed.
base::Time last_policy_refresh_time_;
};
« no previous file with comments | « no previous file | chrome/browser/policy/device_management_policy_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698