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

Unified Diff: chrome/browser/password_manager/account_chooser_dialog_android.cc

Issue 1832933002: Update the |skip_zero_click| flag of a credential when selected in the account chooser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: 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..f6723bf6c10421d7a34c5e30b575adf70b8f107d 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(type == CredentialType::CREDENTIAL_TYPE_PASSWORD);
vabr (Chromium) 2016/03/29 08:45:55 optional nit: One could also either define operato
vasilii 2016/03/29 09:57:44 Done.
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]);
}
}

Powered by Google App Engine
This is Rietveld 408576698