From caafdbb72b9bb42aa0d40a25b4a47e6450246391 Mon Sep 17 00:00:00 2001 From: "stuartmorgan@chromium.org" Date: Sat, 13 Jun 2009 00:44:13 +0000 Subject: 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 --- chrome/browser/password_manager/password_form_manager.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome') 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::const_iterator it = empties.begin(); it != empties.end(); ++it) { // If we don't already have a result with the same username, add the -- cgit v1.1