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

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

Issue 833473003: Change behavior of --show-autofill-type-predictions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wtheckman
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 02f7a09dfe5d5a6591e84012c83a4da187e0c58f..9bc97e2f5505c598566d3a66b4995d9839aa2dd4 100644
--- a/components/autofill/content/renderer/form_cache.cc
+++ b/components/autofill/content/renderer/form_cache.cc
@@ -277,7 +277,6 @@ bool FormCache::ShowPredictions(const FormDataPredictions& form) {
continue;
}
- std::string placeholder = form.fields[i].overall_type;
base::string16 title = l10n_util::GetStringFUTF16(
IDS_AUTOFILL_SHOW_PREDICTIONS_TITLE,
base::UTF8ToUTF16(form.fields[i].heuristic_type),
@@ -285,10 +284,6 @@ bool FormCache::ShowPredictions(const FormDataPredictions& form) {
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));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698