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

Unified Diff: components/autofill/browser/wallet/wallet_address.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: Rebase. 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: 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 {

Powered by Google App Engine
This is Rietveld 408576698