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

Unified Diff: chrome/browser/ui/webui/options/autofill_options_handler.cc

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
Index: chrome/browser/ui/webui/options/autofill_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/autofill_options_handler.cc b/chrome/browser/ui/webui/options/autofill_options_handler.cc
index 2307af0729f201bcd1648e3b3475208dd7009ccd..943daf6694457ee0b34b8c33e344e5d9ab02449d 100644
--- a/chrome/browser/ui/webui/options/autofill_options_handler.cc
+++ b/chrome/browser/ui/webui/options/autofill_options_handler.cc
@@ -100,7 +100,7 @@ void GetValueList(const AutofillProfile& profile,
profile.GetMultiInfo(type, &values);
list->reset(new ListValue);
for (size_t i = 0; i < values.size(); ++i) {
- (*list)->Set(i, Value::CreateStringValue(values[i]));
+ (*list)->Set(i, base::StringValue::New(values[i]));
}
}
@@ -322,8 +322,8 @@ void AutofillOptionsHandler::LoadAutofillData() {
personal_data_->web_profiles().begin();
i != personal_data_->web_profiles().end(); ++i) {
ListValue* entry = new ListValue();
- entry->Append(new StringValue((*i)->guid()));
- entry->Append(new StringValue((*i)->Label()));
+ entry->Append(base::StringValue::New((*i)->guid()));
+ entry->Append(base::StringValue::New((*i)->Label()));
addresses.Append(entry);
}
@@ -334,12 +334,13 @@ void AutofillOptionsHandler::LoadAutofillData() {
personal_data_->credit_cards().begin();
i != personal_data_->credit_cards().end(); ++i) {
ListValue* entry = new ListValue();
- entry->Append(new StringValue((*i)->guid()));
- entry->Append(new StringValue((*i)->Label()));
+ entry->Append(base::StringValue::New((*i)->guid()));
+ entry->Append(base::StringValue::New((*i)->Label()));
int res = CreditCardTypeToResourceID((*i)->type());
entry->Append(
- new StringValue(web_ui_util::GetImageDataUrlFromResource(res)));
- entry->Append(new StringValue(LocalizedCreditCardType((*i)->type())));
+ base::StringValue::New(web_ui_util::GetImageDataUrlFromResource(res)));
+ entry->Append(
+ base::StringValue::New(LocalizedCreditCardType((*i)->type())));
credit_cards.Append(entry);
}

Powered by Google App Engine
This is Rietveld 408576698