| Index: chrome/browser/ui/autofill/data_model_wrapper.cc
|
| diff --git a/chrome/browser/ui/autofill/data_model_wrapper.cc b/chrome/browser/ui/autofill/data_model_wrapper.cc
|
| index 7a6a43c648c71f1433c8d76bb60957230a38ab8e..b39b646006ef4102c6ebaa502fdd1c135ee9bdcf 100644
|
| --- a/chrome/browser/ui/autofill/data_model_wrapper.cc
|
| +++ b/chrome/browser/ui/autofill/data_model_wrapper.cc
|
| @@ -84,7 +84,9 @@ base::string16 DataModelWrapper::GetAddressDisplayText(
|
| GetInfo(AutofillType(ADDRESS_HOME_STATE)) + ASCIIToUTF16(" ") +
|
| GetInfo(AutofillType(ADDRESS_HOME_ZIP));
|
|
|
| - // TODO(estade): email?
|
| + base::string16 email = GetInfo(AutofillType(EMAIL_ADDRESS));
|
| + if (!email.empty())
|
| + address += newline + email;
|
| address += newline + GetInfo(AutofillType(PHONE_HOME_WHOLE_NUMBER));
|
|
|
| return address;
|
| @@ -158,6 +160,21 @@ void AutofillProfileWrapper::FillFormField(AutofillField* field) const {
|
| }
|
| }
|
|
|
| +AutofillShippingAddressWrapper::AutofillShippingAddressWrapper(
|
| + const AutofillProfile* profile, size_t variant)
|
| + : AutofillProfileWrapper(profile, variant) {}
|
| +
|
| +AutofillShippingAddressWrapper::~AutofillShippingAddressWrapper() {}
|
| +
|
| +base::string16 AutofillShippingAddressWrapper::GetInfo(
|
| + const AutofillType& type) const {
|
| + // Shipping addresses don't have email addresses associated with them.
|
| + if (type.GetStorableType() == EMAIL_ADDRESS)
|
| + return base::string16();
|
| +
|
| + return AutofillProfileWrapper::GetInfo(type);
|
| +}
|
| +
|
| // AutofillCreditCardWrapper
|
|
|
| AutofillCreditCardWrapper::AutofillCreditCardWrapper(const CreditCard* card)
|
|
|