| Index: ios/chrome/browser/passwords/ios_chrome_update_password_infobar_delegate.mm
|
| diff --git a/ios/chrome/browser/passwords/ios_chrome_update_password_infobar_delegate.mm b/ios/chrome/browser/passwords/ios_chrome_update_password_infobar_delegate.mm
|
| index 4549b3e8f4c8f020d445adc2d2aa7efab341169b..7bd25cc82658cdb122d66a7178b18ee21631b50f 100644
|
| --- a/ios/chrome/browser/passwords/ios_chrome_update_password_infobar_delegate.mm
|
| +++ b/ios/chrome/browser/passwords/ios_chrome_update_password_infobar_delegate.mm
|
| @@ -57,8 +57,7 @@ bool IOSChromeUpdatePasswordInfoBarDelegate::ShowMultipleAccounts() const {
|
|
|
| NSArray* IOSChromeUpdatePasswordInfoBarDelegate::GetAccounts() const {
|
| NSMutableArray* usernames = [NSMutableArray array];
|
| - const autofill::PasswordFormMap& matches = form_to_save()->best_matches();
|
| - for (const auto& match : matches) {
|
| + for (const auto& match : form_to_save()->best_matches()) {
|
| [usernames addObject:base::SysUTF16ToNSString(match.first)];
|
| }
|
| return usernames;
|
| @@ -96,7 +95,7 @@ bool IOSChromeUpdatePasswordInfoBarDelegate::Accept() {
|
| DCHECK(form_to_save());
|
| if (ShowMultipleAccounts()) {
|
| form_to_save()->Update(
|
| - *form_to_save()->best_matches().at(selected_account_).get());
|
| + *form_to_save()->best_matches().at(selected_account_));
|
| } else {
|
| form_to_save()->Update(form_to_save()->pending_credentials());
|
| }
|
|
|