summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/options/autofill_options_handler.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-04 11:58:25 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-04 11:58:25 +0000
commit4ed89aafbeb532c56f920914e3a01d31d96b4780 (patch)
tree827983c8a524961dd68b3e779ed3a84df2b28ddb /chrome/browser/ui/webui/options/autofill_options_handler.cc
parent9168c16bc28595e1b11d3fba79f0b4a7c708e315 (diff)
downloadchromium_src-4ed89aafbeb532c56f920914e3a01d31d96b4780.zip
chromium_src-4ed89aafbeb532c56f920914e3a01d31d96b4780.tar.gz
chromium_src-4ed89aafbeb532c56f920914e3a01d31d96b4780.tar.bz2
webui/options: Do not use Value::CreateStringValue.
BUG=160586 R=estade@chromium.org TBR=akalin@chromium.org Review URL: https://chromiumcodereview.appspot.com/11415226 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170936 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui/options/autofill_options_handler.cc')
-rw-r--r--chrome/browser/ui/webui/options/autofill_options_handler.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/ui/webui/options/autofill_options_handler.cc b/chrome/browser/ui/webui/options/autofill_options_handler.cc
index 6da1da3..2632fec 100644
--- a/chrome/browser/ui/webui/options/autofill_options_handler.cc
+++ b/chrome/browser/ui/webui/options/autofill_options_handler.cc
@@ -111,7 +111,7 @@ void GetValueList(const AutofillProfile& profile,
return;
for (size_t i = 0; i < values.size(); ++i) {
- (*list)->Set(i, Value::CreateStringValue(values[i]));
+ (*list)->Set(i, new base::StringValue(values[i]));
}
}
@@ -150,9 +150,9 @@ void GetNameList(const AutofillProfile& profile,
for (size_t i = 0; i < first_names.size(); ++i) {
ListValue* name = new ListValue; // owned by |list|
- name->Set(0, Value::CreateStringValue(first_names[i]));
- name->Set(1, Value::CreateStringValue(middle_names[i]));
- name->Set(2, Value::CreateStringValue(last_names[i]));
+ name->Set(0, new base::StringValue(first_names[i]));
+ name->Set(1, new base::StringValue(middle_names[i]));
+ name->Set(2, new base::StringValue(last_names[i]));
(*names)->Set(i, name);
}
}