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

Unified Diff: components/autofill/core/browser/autofill_profile.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/autofill_profile.cc
diff --git a/components/autofill/core/browser/autofill_profile.cc b/components/autofill/core/browser/autofill_profile.cc
index e727ae47a34de9e8ed99c563ea0e18027d8afca9..7cdd168450770af62ed188c893947153b850c87b 100644
--- a/components/autofill/core/browser/autofill_profile.cc
+++ b/components/autofill/core/browser/autofill_profile.cc
@@ -481,7 +481,7 @@ bool AutofillProfile::operator!=(const AutofillProfile& profile) const {
return !operator==(profile);
}
-const base::string16 AutofillProfile::PrimaryValue() const {
+const base::string16& AutofillProfile::PrimaryValue() const {
vabr (Chromium) 2014/07/11 13:37:43 Here again, the returned object is local and goes
vabr (Chromium) 2014/07/11 19:27:49 And retracting my comment here as well, please rev
lucinka.brozkova 2014/07/11 21:05:57 Done.
return GetRawInfo(ADDRESS_HOME_LINE1) + GetRawInfo(ADDRESS_HOME_CITY);
}

Powered by Google App Engine
This is Rietveld 408576698