Index: components/policy/tools/generate_policy_source.py |
diff --git a/components/policy/tools/generate_policy_source.py b/components/policy/tools/generate_policy_source.py |
index c3957c7d906bcaf0084f9597ab09d33d6f0f1f1f..4e07baa70dbd6ed870dfa982ecc14ad883fe9237 100755 |
--- a/components/policy/tools/generate_policy_source.py |
+++ b/components/policy/tools/generate_policy_source.py |
@@ -825,7 +825,7 @@ base::ListValue* DecodeStringList(const em::StringList& string_list) { |
RepeatedPtrField<std::string>::const_iterator entry; |
for (entry = string_list.entries().begin(); |
entry != string_list.entries().end(); ++entry) { |
- list_value->Append(base::Value::CreateStringValue(*entry)); |
+ list_value->AppendString(*entry); |
} |
return list_value; |
} |
@@ -860,7 +860,7 @@ def _CreateValue(type, arg): |
elif type == 'TYPE_INTEGER': |
return 'DecodeIntegerValue(%s)' % arg |
elif type == 'TYPE_STRING': |
- return 'base::Value::CreateStringValue(%s)' % arg |
+ return 'new base::StringValue(%s)' % arg |
elif type == 'TYPE_LIST': |
return 'DecodeStringList(%s)' % arg |
elif type == 'TYPE_DICTIONARY' or type == 'TYPE_EXTERNAL': |