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

Unified Diff: components/autofill/content/renderer/form_cache.cc

Issue 112433004: Update uses of UTF conversions in chrome_frame/, chromeos/, components/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: components/autofill/content/renderer/form_cache.cc
diff --git a/components/autofill/content/renderer/form_cache.cc b/components/autofill/content/renderer/form_cache.cc
index 516303c7a1000d72271a4d3bef803a1d2314fa2c..431979ebd4c8a6875473e974780ec7bdee3e7ce0 100644
--- a/components/autofill/content/renderer/form_cache.cc
+++ b/components/autofill/content/renderer/form_cache.cc
@@ -290,13 +290,15 @@ bool FormCache::ShowPredictions(const FormDataPredictions& form) {
std::string placeholder = form.fields[i].overall_type;
base::string16 title = l10n_util::GetStringFUTF16(
IDS_AUTOFILL_SHOW_PREDICTIONS_TITLE,
- UTF8ToUTF16(form.fields[i].heuristic_type),
- UTF8ToUTF16(form.fields[i].server_type),
- UTF8ToUTF16(form.fields[i].signature),
- UTF8ToUTF16(form.signature),
- UTF8ToUTF16(form.experiment_id));
- if (!element->hasAttribute("placeholder"))
- element->setAttribute("placeholder", WebString(UTF8ToUTF16(placeholder)));
+ base::UTF8ToUTF16(form.fields[i].heuristic_type),
+ base::UTF8ToUTF16(form.fields[i].server_type),
+ base::UTF8ToUTF16(form.fields[i].signature),
+ base::UTF8ToUTF16(form.signature),
+ base::UTF8ToUTF16(form.experiment_id));
+ if (!element->hasAttribute("placeholder")) {
+ element->setAttribute("placeholder",
+ WebString(base::UTF8ToUTF16(placeholder)));
+ }
element->setAttribute("title", WebString(title));
}

Powered by Google App Engine
This is Rietveld 408576698