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

Unified Diff: components/password_manager/core/browser/password_store_default.cc

Issue 906973007: PasswordStore: Clean up expectations about rewriting vectors of forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Linux compile Created 5 years, 9 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/password_manager/core/browser/password_store_default.cc
diff --git a/components/password_manager/core/browser/password_store_default.cc b/components/password_manager/core/browser/password_store_default.cc
index 88f6e9e45fe47f83a99df12fad70d62a5dd9e340..d20846f207e16102040b190c439aada009637221 100644
--- a/components/password_manager/core/browser/password_store_default.cc
+++ b/components/password_manager/core/browser/password_store_default.cc
@@ -115,8 +115,8 @@ ScopedVector<autofill::PasswordForm> PasswordStoreDefault::FillMatchingLogins(
const autofill::PasswordForm& form,
AuthorizationPromptPolicy prompt_policy) {
ScopedVector<autofill::PasswordForm> matched_forms;
- if (login_db_)
- login_db_->GetLogins(form, &matched_forms);
+ if (login_db_ && !login_db_->GetLogins(form, &matched_forms))
+ return ScopedVector<autofill::PasswordForm>();
return matched_forms.Pass();
}

Powered by Google App Engine
This is Rietveld 408576698