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..edc3ff77f29bdbe14d1c081a58091c0ae73c24a8 100644 |
--- a/components/autofill/browser/wallet/wallet_address.cc |
+++ b/components/autofill/browser/wallet/wallet_address.cc |
@@ -214,8 +214,23 @@ scoped_ptr<base::DictionaryValue> Address::ToDictionaryWithoutID() const { |
} |
string16 Address::DisplayName() const { |
+#if defined(OS_ANDROID) |
+ // TODO(aruslan): improve this stub implementation. |
+ return recipient_name(); |
+#else |
// TODO(estade): improve this stub implementation. |
+ // TODO(estade): I18N. |
Evan Stade
2013/03/14 01:00:39
technically, l10n.
aruslan
2013/03/14 17:35:41
Done.
|
return recipient_name() + ASCIIToUTF16(", ") + address_line_1(); |
+#endif |
+} |
+ |
+string16 Address::DisplayNameLine2() 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 { |