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

Issue 382243002: Cleanup return values in autofill (Closed)

Created:
6 years, 5 months ago by lucinka.brozkova
Modified:
6 years, 5 months ago
CC:
chromium-reviews, benquan, jam, browser-components-watch_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Cleanup return values in autofill This CL turns const by value return values into const by ref. Replacing const value by a const ref when a member variable is safe, because the member variable will live at least as long as the temporary object returned now. It can also be more efficient, because returning a ref can spare copying. BUG=393155 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282769

Patch Set 1 #

Total comments: 14

Patch Set 2 : Revert unwanted changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M components/autofill/core/browser/autofill_country.h View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
vabr (Chromium)
The compiler errors made me re-think my initial off-line review :), please correct. The AutofillCountry ...
6 years, 5 months ago (2014-07-11 13:37:43 UTC) #1
Ilya Sherman
https://codereview.chromium.org/382243002/diff/1/components/autofill/content/renderer/form_autofill_util.cc File components/autofill/content/renderer/form_autofill_util.cc (right): https://codereview.chromium.org/382243002/diff/1/components/autofill/content/renderer/form_autofill_util.cc#newcode678 components/autofill/content/renderer/form_autofill_util.cc:678: const base::string16& GetFormIdentifier(const WebFormElement& form) { On 2014/07/11 13:37:43, ...
6 years, 5 months ago (2014-07-11 19:11:11 UTC) #2
vabr (Chromium)
https://codereview.chromium.org/382243002/diff/1/components/autofill/content/renderer/form_autofill_util.cc File components/autofill/content/renderer/form_autofill_util.cc (right): https://codereview.chromium.org/382243002/diff/1/components/autofill/content/renderer/form_autofill_util.cc#newcode678 components/autofill/content/renderer/form_autofill_util.cc:678: const base::string16& GetFormIdentifier(const WebFormElement& form) { On 2014/07/11 19:11:10, ...
6 years, 5 months ago (2014-07-11 19:24:47 UTC) #3
vabr (Chromium)
https://codereview.chromium.org/382243002/diff/1/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/382243002/diff/1/components/autofill/core/browser/autofill_profile.cc#newcode484 components/autofill/core/browser/autofill_profile.cc:484: const base::string16& AutofillProfile::PrimaryValue() const { On 2014/07/11 13:37:43, vabr ...
6 years, 5 months ago (2014-07-11 19:27:49 UTC) #4
lucinka.brozkova
Hi Ilya, Thank you for your review. I reverted all the files apart from autofill_country.h. ...
6 years, 5 months ago (2014-07-11 21:05:58 UTC) #5
Ilya Sherman
LGTM. Thanks for the cleanup!
6 years, 5 months ago (2014-07-11 22:21:39 UTC) #6
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 5 months ago (2014-07-11 22:21:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lucinka.brozkova@gmail.com/382243002/20001
6 years, 5 months ago (2014-07-11 22:25:30 UTC) #8
commit-bot: I haz the power
6 years, 5 months ago (2014-07-12 01:15:04 UTC) #9
Message was sent while issue was closed.
Change committed as 282769

Powered by Google App Engine
This is Rietveld 408576698