Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc |
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc |
index df8759d3b2c51d876b58cbdcca8b1e1649b780b7..9e88ba7cd0b788bfd02c60ace4aecaf0ff3e7977 100644 |
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc |
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc |
@@ -1269,17 +1269,20 @@ void AutofillDialogControllerImpl::GenerateSuggestionsModels() { |
wallet_items_->addresses(); |
for (size_t i = 0; i < addresses.size(); ++i) { |
// TODO(dbeam): respect wallet_items_->default_instrument_id(). |
- suggested_shipping_.AddKeyedItem(base::IntToString(i), |
- addresses[i]->DisplayName()); |
+ suggested_shipping_.AddKeyedItemWithSublabel( |
+ base::IntToString(i), |
+ addresses[i]->DisplayName(), |
+ addresses[i]->DisplayNameDetail()); |
} |
const std::vector<wallet::WalletItems::MaskedInstrument*>& instruments = |
wallet_items_->instruments(); |
for (size_t i = 0; i < instruments.size(); ++i) { |
// TODO(dbeam): respect wallet_items_->default_address_id(). |
- suggested_cc_billing_.AddKeyedItemWithIcon( |
+ suggested_cc_billing_.AddKeyedItemWithSublabelAndIcon( |
base::IntToString(i), |
- instruments[i]->descriptive_name(), |
+ instruments[i]->DisplayName(), |
+ instruments[i]->DisplayNameDetail(), |
instruments[i]->CardIcon()); |
} |
} |