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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc

Issue 12755019: Add 2-lines summary to CC/Address for Wallet items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: SubLabel and sub-label -> Sublabel and sublabel. Added description. Created 7 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/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());
}
}
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_models.h » ('j') | components/autofill/browser/wallet/wallet_items.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698