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

Unified Diff: chrome/tools/build/generate_policy_source.py

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 years, 4 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
« no previous file with comments | « chrome/test/webdriver/web_element_id.cc ('k') | content/browser/gpu/gpu_blacklist.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/build/generate_policy_source.py
diff --git a/chrome/tools/build/generate_policy_source.py b/chrome/tools/build/generate_policy_source.py
index e5fe160b32c3efa240715d0353e90191328c0384..2d16971bae141b104ecf8a429060ce8e85f3d708 100644
--- a/chrome/tools/build/generate_policy_source.py
+++ b/chrome/tools/build/generate_policy_source.py
@@ -252,7 +252,7 @@ Value* DecodeIntegerValue(google::protobuf::int64 value) {
return NULL;
}
- return Value::CreateIntegerValue(static_cast<int>(value));
+ return base::NumberValue::New(static_cast<int>(value));
}
ListValue* DecodeStringList(const em::StringList& string_list) {
@@ -260,7 +260,7 @@ 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(Value::CreateStringValue(*entry));
+ list_value->Append(base::StringValue::New(*entry));
}
return list_value;
}
@@ -280,11 +280,11 @@ CPP_FOOT = '''}
def _CreateValue(type):
if type == 'main':
- return "Value::CreateBooleanValue"
+ return "base::BooleanValue::New"
elif type in ('int', 'int-enum'):
return "DecodeIntegerValue"
elif type in ('string', 'string-enum'):
- return "Value::CreateStringValue"
+ return "base::StringValue::New"
elif type == 'list':
return "DecodeStringList"
else:
« no previous file with comments | « chrome/test/webdriver/web_element_id.cc ('k') | content/browser/gpu/gpu_blacklist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698