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

Unified Diff: chrome/browser/policy/policy_map.cc

Issue 8258018: Generate Chrome policy definition list from policy_templates.json. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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/policy_map.cc
diff --git a/chrome/browser/policy/policy_map.cc b/chrome/browser/policy/policy_map.cc
index a9c16d98648eab982365cafebbcefac3c2ec09e0..e923701abdc8676888fdfd3673abbf46ad9e0aa9 100644
--- a/chrome/browser/policy/policy_map.cc
+++ b/chrome/browser/policy/policy_map.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include "base/stl_util.h"
+#include "policy/policy_constants.h"
namespace policy {
@@ -48,8 +49,8 @@ void PolicyMap::CopyFrom(const PolicyMap& other) {
void PolicyMap::LoadFrom(
const DictionaryValue* policies,
- const ConfigurationPolicyProvider::PolicyDefinitionList* list) {
- const ConfigurationPolicyProvider::PolicyDefinitionList::Entry* entry;
+ const PolicyDefinitionList* list) {
+ const PolicyDefinitionList::Entry* entry;
for (entry = list->begin; entry != list->end; ++entry) {
Value* value;
if (policies->Get(entry->name, &value) && value->IsType(entry->value_type))

Powered by Google App Engine
This is Rietveld 408576698