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

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

Issue 11415226: webui/options: Do not use Value::CreateStringValue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years 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 6da1da33b71bd8e5a37bbb969d2b63f485cd848e..2632fecb85c653b739955cc608f376a5643ac90c 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);
}
}
« no previous file with comments | « chrome/browser/ui/sync/one_click_signin_helper.cc ('k') | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698