diff options
author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-13 00:44:13 +0000 |
---|---|---|
committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-13 00:44:13 +0000 |
commit | caafdbb72b9bb42aa0d40a25b4a47e6450246391 (patch) | |
tree | 4930c90afdb77f4b0a64704eaff59ae615eecffc /chrome/browser/password_manager | |
parent | 3f45e747058ff88d56ade868918d99f830d11df9 (diff) | |
download | chromium_src-caafdbb72b9bb42aa0d40a25b4a47e6450246391.zip chromium_src-caafdbb72b9bb42aa0d40a25b4a47e6450246391.tar.gz chromium_src-caafdbb72b9bb42aa0d40a25b4a47e6450246391.tar.bz2 |
Restores an early return that was incorrectly removed in the PasswordStore refactoring.
BUG=13979
TEST=Save a password on a site with a valid SSL certificate, then visit in when the cert is no longer valid.
Review URL: http://codereview.chromium.org/125074
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18338 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/password_manager')
-rw-r--r-- | chrome/browser/password_manager/password_form_manager.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/password_manager/password_form_manager.cc b/chrome/browser/password_manager/password_form_manager.cc index ad8d550..8122f28 100644 --- a/chrome/browser/password_manager/password_form_manager.cc +++ b/chrome/browser/password_manager/password_form_manager.cc @@ -235,6 +235,10 @@ void PasswordFormManager::OnRequestDone(int handle, // We're done matching now. state_ = POST_MATCHING_PHASE; + if (best_score <= 0) { + return; + } + for (std::vector<PasswordForm>::const_iterator it = empties.begin(); it != empties.end(); ++it) { // If we don't already have a result with the same username, add the |