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

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

Issue 9111022: Removed ConfigurationPolicyType and extended PolicyMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed builds, rebased Created 8 years, 11 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/policy/user_policy_cache.h
diff --git a/chrome/browser/policy/user_policy_cache.h b/chrome/browser/policy/user_policy_cache.h
index 1696430fa763f25fcd994bb5f8ec7074b2de06d5..ab11cae1d335538ecd891d2f7aea19e4ad3f186c 100644
--- a/chrome/browser/policy/user_policy_cache.h
+++ b/chrome/browser/policy/user_policy_cache.h
@@ -60,8 +60,7 @@ class UserPolicyCache : public CloudPolicyCacheBase,
// CloudPolicyCacheBase implementation:
virtual bool DecodePolicyData(
const enterprise_management::PolicyData& policy_data,
- PolicyMap* mandatory,
- PolicyMap* recommended) OVERRIDE;
+ PolicyMap* policies) OVERRIDE;
// Checks if this cache is ready, and invokes SetReady() if so.
void CheckIfReady();
@@ -70,13 +69,8 @@ class UserPolicyCache : public CloudPolicyCacheBase,
// The following member functions are needed to support old-style policy and
// can be removed once all server-side components (CPanel, D3) have been
// migrated to providing the new policy format.
-
- // If |mandatory| and |recommended| are both empty, and |policy_data|
- // contains a field named "repeated GenericNamedValue named_value = 2;",
- // this field is decoded into |mandatory|.
Mattias Nissler (ping if slow) 2012/01/17 09:52:45 Please keep this comment, updating it to reflect t
Joao da Silva 2012/01/17 13:09:29 Done.
void MaybeDecodeOldstylePolicy(const std::string& policy_data,
- PolicyMap* mandatory,
- PolicyMap* recommended);
+ PolicyMap* policies);
Value* DecodeIntegerValue(google::protobuf::int64 value) const;
Value* DecodeValue(const enterprise_management::GenericValue& value) const;

Powered by Google App Engine
This is Rietveld 408576698