| 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 418f4cb01f5721c4ad5dd27c0e41dc04809683b2..a0fafe856e7e79d77414066c81b4f2146a775a01 100644
|
| --- a/chrome/browser/ui/autofill/data_model_wrapper.cc
|
| +++ b/chrome/browser/ui/autofill/data_model_wrapper.cc
|
| @@ -162,6 +162,13 @@ string16 WalletAddressWrapper::GetInfo(AutofillFieldType type) {
|
| return address_->GetInfo(type, g_browser_process->GetApplicationLocale());
|
| }
|
|
|
| +string16 WalletAddressWrapper::GetDisplayText() {
|
| + if (!address_->is_complete_address())
|
| + return string16();
|
| +
|
| + return DataModelWrapper::GetDisplayText();
|
| +}
|
| +
|
| // WalletInstrumentWrapper
|
|
|
| WalletInstrumentWrapper::WalletInstrumentWrapper(
|
| @@ -183,8 +190,10 @@ gfx::Image WalletInstrumentWrapper::GetIcon() {
|
|
|
| string16 WalletInstrumentWrapper::GetDisplayText() {
|
| // TODO(dbeam): handle other instrument statuses? http://crbug.com/233048
|
| - if (instrument_->status() == wallet::WalletItems::MaskedInstrument::EXPIRED)
|
| + if (instrument_->status() == wallet::WalletItems::MaskedInstrument::EXPIRED ||
|
| + !instrument_->address().is_complete_address()) {
|
| return string16();
|
| + }
|
|
|
| // TODO(estade): descriptive_name() is user-provided. Should we use it or
|
| // just type + last 4 digits?
|
|
|