Index: tools/json_schema_compiler/util.cc |
diff --git a/tools/json_schema_compiler/util.cc b/tools/json_schema_compiler/util.cc |
index d1a16261d2a85ac3a8b2c9b29aaa34da357eda78..a5e1668c1ff2aef628e005e8ab1e9d19962bd430 100644 |
--- a/tools/json_schema_compiler/util.cc |
+++ b/tools/json_schema_compiler/util.cc |
@@ -138,19 +138,19 @@ bool PopulateItem(const base::Value& from, |
} |
void AddItemToList(const int from, base::ListValue* out) { |
- out->Append(new base::FundamentalValue(from)); |
+ out->AppendInteger(from); |
} |
void AddItemToList(const bool from, base::ListValue* out) { |
- out->Append(new base::FundamentalValue(from)); |
+ out->AppendBoolean(from); |
} |
void AddItemToList(const double from, base::ListValue* out) { |
- out->Append(new base::FundamentalValue(from)); |
+ out->AppendDouble(from); |
} |
void AddItemToList(const std::string& from, base::ListValue* out) { |
- out->Append(new base::StringValue(from)); |
+ out->AppendString(from); |
} |
void AddItemToList(const std::vector<char>& from, base::ListValue* out) { |