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(); |
} |