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

Unified Diff: components/autofill/content/renderer/form_autofill_util.h

Issue 208453002: Add "previewing on hover" support for password field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improve rebased code. Created 6 years, 7 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: components/autofill/content/renderer/form_autofill_util.h
diff --git a/components/autofill/content/renderer/form_autofill_util.h b/components/autofill/content/renderer/form_autofill_util.h
index 0f0f6c2e134ba13cfde638658a9925f5056605d8..4a6abf55e4738eb201d0d689b346b084ce068cff 100644
--- a/components/autofill/content/renderer/form_autofill_util.h
+++ b/components/autofill/content/renderer/form_autofill_util.h
@@ -146,10 +146,11 @@ void PreviewForm(const FormData& form,
// Clears the placeholder values and the auto-filled background for any fields
// in the form containing |node| that have been previewed. Resets the
-// autofilled state of |node| to |was_autofilled|. Returns false if the form is
-// not found.
+// autofilled state of |node| to |was_autofilled| and password node autofilled
+// state to |was_password_autofilled|. Returns false if the form is not found.
bool ClearPreviewedFormWithElement(const blink::WebFormControlElement& element,
- bool was_autofilled);
+ bool was_autofilled,
+ bool was_password_autofilled);
Ilya Sherman 2014/05/13 00:44:05 There might be multiple passwords. I think it mig
ziran.sun 2014/05/14 15:35:12 Done.
// Returns true if |form| has any auto-filled fields.
bool FormWithElementIsAutofilled(const blink::WebInputElement& element);

Powered by Google App Engine
This is Rietveld 408576698