Index: components/autofill/browser/wallet/wallet_address.cc |
diff --git a/components/autofill/browser/wallet/wallet_address.cc b/components/autofill/browser/wallet/wallet_address.cc |
index 5b0cc0868249e1d7505e6a936a715209612450a2..8f7a0b844075599ce4243ffc69094d55c0ff6f78 100644 |
--- a/components/autofill/browser/wallet/wallet_address.cc |
+++ b/components/autofill/browser/wallet/wallet_address.cc |
@@ -214,8 +214,22 @@ scoped_ptr<base::DictionaryValue> Address::ToDictionaryWithoutID() const { |
} |
string16 Address::DisplayName() const { |
- // TODO(estade): improve this stub implementation. |
+#if defined(OS_ANDROID) |
+ // TODO(aruslan): improve this stub implementation. |
+ return recipient_name(); |
+#else |
+ // TODO(estade): improve this stub implementation + l10n. |
return recipient_name() + ASCIIToUTF16(", ") + address_line_1(); |
+#endif |
+} |
+ |
+string16 Address::DisplayNameDetail() const { |
+#if defined(OS_ANDROID) |
+ // TODO(aruslan): improve this stub implementation. |
+ return address_line_1(); |
+#else |
+ return string16(); |
+#endif |
} |
string16 Address::GetInfo(AutofillFieldType type) const { |