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

Unified Diff: chrome/renderer/autofill/password_generation_manager.cc

Issue 11446028: Ignore autocomplete=off when password manager is saving the generated passwords during account crea… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a naming issue. 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/renderer/autofill/password_generation_manager.cc
diff --git a/chrome/renderer/autofill/password_generation_manager.cc b/chrome/renderer/autofill/password_generation_manager.cc
index 3e0b52538db8c2323174d47f046472432d735f19..98993849aa3ca0a3b888308e69960141e7ee34fb 100644
--- a/chrome/renderer/autofill/password_generation_manager.cc
+++ b/chrome/renderer/autofill/password_generation_manager.cc
@@ -103,10 +103,7 @@ void PasswordGenerationManager::DidFinishLoad(WebKit::WebFrame* frame) {
WebKit::WebVector<WebKit::WebFormElement> forms;
frame->document().forms(forms);
for (size_t i = 0; i < forms.size(); ++i) {
- // Ignore forms with autocomplete turned off for now. We may remove this in
- // the future, as we only want to avoid creating passwords if the signin
- // form has autocomplete turned off.
- if (forms[i].isNull() || !forms[i].autoComplete())
+ if (forms[i].isNull())
continue;
// If we can't get a valid PasswordForm, we skip this form because the

Powered by Google App Engine
This is Rietveld 408576698