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

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: move 'unmanaged' timestamp into DMPCache's file; introduce private DMPProvider constructor 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
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..4065ce9ec39150ca8fe5f811f38fa4f62993310c 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();
+ bool is_device_unmanaged() const {
+ return is_device_unmanaged_;
+ }
+ void SetDeviceUnmanaged(bool is_device_unmanaged);
Mattias Nissler (ping if slow) 2010/11/26 10:37:45 Can you swap these? Most classes I have seen have
Jakob Kummerow 2010/11/26 11:07:42 Done.
+
// 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_;
};

Powered by Google App Engine
This is Rietveld 408576698