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

Unified Diff: components/autofill/core/browser/credit_card.cc

Issue 382243002: Cleanup return values in autofill (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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/core/browser/credit_card.cc
diff --git a/components/autofill/core/browser/credit_card.cc b/components/autofill/core/browser/credit_card.cc
index 25a2329b72486b539b61c09ff3c90643bb6b40ba..d38cf7b31d3fe0c9d3af9d5491da7890d8b976b4 100644
--- a/components/autofill/core/browser/credit_card.cc
+++ b/components/autofill/core/browser/credit_card.cc
@@ -411,7 +411,7 @@ void CreditCard::GetMatchingTypes(const base::string16& text,
}
}
-const base::string16 CreditCard::Label() const {
+const base::string16& CreditCard::Label() const {
base::string16 label;
if (number().empty())
return name_on_card_; // No CC number, return name only.

Powered by Google App Engine
This is Rietveld 408576698