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

Unified Diff: chrome/browser/extensions/api/rtc_private/rtc_private_api.cc

Issue 22885002: c/b/extensions, json_schema_compiler: Do not use Value::Create*. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed C-style casts. Created 7 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
Index: chrome/browser/extensions/api/rtc_private/rtc_private_api.cc
diff --git a/chrome/browser/extensions/api/rtc_private/rtc_private_api.cc b/chrome/browser/extensions/api/rtc_private/rtc_private_api.cc
index 642a30ac16bf89c24ea7359d8179aa948c60ef7b..ac1fe833f0fdcf200566064f3a410ee24d376867 100644
--- a/chrome/browser/extensions/api/rtc_private/rtc_private_api.cc
+++ b/chrome/browser/extensions/api/rtc_private/rtc_private_api.cc
@@ -67,7 +67,7 @@ void GetContactIntentData(const Contact& contact,
dict->Set(kPhoneIntentField, phone_list);
for (int i = 0; i < contact.phone_numbers_size(); i++) {
const Contact_PhoneNumber& phone_number = contact.phone_numbers(i);
- StringValue* value = Value::CreateStringValue(phone_number.number());
+ StringValue* value = new base::StringValue(phone_number.number());
if (phone_number.primary())
CHECK(phone_list->Insert(0, value));
else
@@ -78,7 +78,7 @@ void GetContactIntentData(const Contact& contact,
dict->Set(kEmailIntentField, email_list);
for (int i = 0; i < contact.email_addresses_size(); i++) {
const Contact_EmailAddress& email_address = contact.email_addresses(i);
- StringValue* value = Value::CreateStringValue(email_address.address());
+ StringValue* value = new base::StringValue(email_address.address());
if (email_address.primary())
CHECK(email_list->Insert(0, value));
else

Powered by Google App Engine
This is Rietveld 408576698