Index: chrome/browser/policy/policy_loader_win.cc |
diff --git a/chrome/browser/policy/policy_loader_win.cc b/chrome/browser/policy/policy_loader_win.cc |
index 36a44fea38450e53e1a55832ad4f4d7e2a503c2f..5676fb2a636a99d24b7ebcf39f52bef43eddb991 100644 |
--- a/chrome/browser/policy/policy_loader_win.cc |
+++ b/chrome/browser/policy/policy_loader_win.cc |
@@ -262,11 +262,11 @@ base::Value::Type GetDefaultFor(DWORD reg_type) { |
} |
// Returns the entry with key |name| in |dictionary| (can be NULL), or NULL. |
-base::DictionaryValue* GetEntry(const base::DictionaryValue* dictionary, |
+const base::DictionaryValue* GetEntry(const base::DictionaryValue* dictionary, |
const std::string& name) { |
if (!dictionary) |
return NULL; |
- base::DictionaryValue* entry = NULL; |
+ const base::DictionaryValue* entry = NULL; |
dictionary->GetDictionary(name, &entry); |
return entry; |
} |
@@ -274,10 +274,10 @@ base::DictionaryValue* GetEntry(const base::DictionaryValue* dictionary, |
// Returns the schema for property |name| given the |schema| of an object. |
// Returns the "additionalProperties" schema if no specific schema for |
// |name| is present. Returns NULL if no schema is found. |
-base::DictionaryValue* GetSchemaFor(const base::DictionaryValue* schema, |
+const base::DictionaryValue* GetSchemaFor(const base::DictionaryValue* schema, |
const std::string& name) { |
- base::DictionaryValue* properties = GetEntry(schema, kProperties); |
- base::DictionaryValue* sub_schema = GetEntry(properties, name); |
+ const base::DictionaryValue* properties = GetEntry(schema, kProperties); |
+ const base::DictionaryValue* sub_schema = GetEntry(properties, name); |
if (sub_schema) |
return sub_schema; |
// "additionalProperties" can be a boolean, but that case is ignored. |
@@ -469,7 +469,7 @@ base::DictionaryValue* ReadComponentDictionaryValue( |
continue; |
} |
- base::DictionaryValue* sub_schema = GetSchemaFor(schema, name); |
+ const base::DictionaryValue* sub_schema = GetSchemaFor(schema, name); |
base::Value::Type type = GetType(sub_schema, base::Value::TYPE_DICTIONARY); |
base::Value* value = NULL; |
const string16 sub_path = path + kPathSep + name16; |