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

Unified Diff: chrome/browser/password_manager/password_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: 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
« no previous file with comments | « no previous file | chrome/renderer/autofill/password_autofill_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/password_manager.cc
diff --git a/chrome/browser/password_manager/password_manager.cc b/chrome/browser/password_manager/password_manager.cc
index a00c991d1ccba8542a4bff4bd0f61435a23cfbbb..6990d52567dbe438428cb77270489ab43dce9efd 100644
--- a/chrome/browser/password_manager/password_manager.cc
+++ b/chrome/browser/password_manager/password_manager.cc
@@ -181,6 +181,12 @@ void PasswordManager::ProvisionallySavePassword(const PasswordForm& form) {
if (!manager->HasValidPasswordForm())
return;
+ // Don't save the password if it is not generated password and autocomplete is
Garrett Casto 2012/12/06 08:06:14 This sentence doesn't read right. I think you want
+ // turned off for it.
+ if (!manager->HasGeneratedPassword() && !form.password_should_autocomplete) {
Garrett Casto 2012/12/06 08:06:14 No braces here.
+ return;
+ }
+
PasswordForm provisionally_saved_form(form);
provisionally_saved_form.ssl_valid = form.origin.SchemeIsSecure() &&
!delegate_->DidLastPageLoadEncounterSSLErrors();
« no previous file with comments | « no previous file | chrome/renderer/autofill/password_autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698