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

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

Issue 1009953002: Integrate ManagePasswordsState into ManagePasswordsUIController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: last comments 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: chrome/browser/password_manager/account_chooser_infobar_delegate_android.cc
diff --git a/chrome/browser/password_manager/account_chooser_infobar_delegate_android.cc b/chrome/browser/password_manager/account_chooser_infobar_delegate_android.cc
index 21a252e2b25c5bb13537b96f08add3ac7e17d2dd..a4654ffc371e5634d167f474f804a981eb5fc363 100644
--- a/chrome/browser/password_manager/account_chooser_infobar_delegate_android.cc
+++ b/chrome/browser/password_manager/account_chooser_infobar_delegate_android.cc
@@ -36,10 +36,10 @@ void AccountChooserInfoBarDelegateAndroid::ChooseCredential(
}
DCHECK(credential_type == CredentialType::CREDENTIAL_TYPE_LOCAL ||
credential_type == CredentialType::CREDENTIAL_TYPE_FEDERATED);
- auto& credentials_forms =
+ const auto& credentials_forms =
(credential_type == CredentialType::CREDENTIAL_TYPE_LOCAL)
- ? ui_controller_->local_credentials_forms()
- : ui_controller_->federated_credentials_forms();
+ ? ui_controller_->GetCurrentForms()
+ : ui_controller_->GetFederatedForms();
if (credential_index < credentials_forms.size()) {
ui_controller_->ChooseCredential(*credentials_forms[credential_index],
credential_type);

Powered by Google App Engine
This is Rietveld 408576698