Index: chrome/browser/password_manager/account_chooser_dialog_android.cc |
diff --git a/chrome/browser/password_manager/account_chooser_dialog_android.cc b/chrome/browser/password_manager/account_chooser_dialog_android.cc |
index 309253f363263530a592c4d11b5644365a3fe17c..2df638258e2d0c113f0f933c3bc2640e1e10238a 100644 |
--- a/chrome/browser/password_manager/account_chooser_dialog_android.cc |
+++ b/chrome/browser/password_manager/account_chooser_dialog_android.cc |
@@ -206,17 +206,16 @@ void AccountChooserDialogAndroid::ChooseCredential( |
password_manager::CredentialType type) { |
using namespace password_manager; |
if (type == CredentialType::CREDENTIAL_TYPE_EMPTY) { |
- passwords_data_.ChooseCredential(autofill::PasswordForm(), type); |
+ passwords_data_.ChooseCredential(nullptr); |
return; |
} |
- DCHECK(type == CredentialType::CREDENTIAL_TYPE_PASSWORD || |
- type == CredentialType::CREDENTIAL_TYPE_FEDERATED); |
+ DCHECK_EQ(CredentialType::CREDENTIAL_TYPE_PASSWORD, type); |
const auto& credentials_forms = |
(type == CredentialType::CREDENTIAL_TYPE_PASSWORD) |
? local_credentials_forms() |
: federated_credentials_forms(); |
if (index < credentials_forms.size()) { |
- passwords_data_.ChooseCredential(*credentials_forms[index], type); |
+ passwords_data_.ChooseCredential(credentials_forms[index]); |
} |
} |