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

Issue 1635813003: country_names.cc: change SetLocaleString to take const ref instead of value (Closed)

Created:
4 years, 11 months ago by vabr (Chromium)
Modified:
4 years, 11 months ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews, rouslan+autofill_chromium.org, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

country_names.cc: change SetLocaleString to take const ref instead of value Before the CL, SetLocaleString took a string by value and used std::move on it. After a discussion on chromium-dev [1], passing a const ref was recognised as the preferred style in Chromium, so this CL changes it. [1] https://groups.google.com/a/chromium.org/forum/#!searchin/chromium-dev/string$20const$20ref/chromium-dev/ZoAfW7GXUVI/fCYjkg2JBAAJ BUG=571610 R=isherman@chromium.org Committed: https://crrev.com/aee53e9e6fd6d2c4877e78255d5f4416891de56e Cr-Commit-Position: refs/heads/master@{#371617}

Patch Set 1 #

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

Messages

Total messages: 14 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1635813003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1635813003/1
4 years, 11 months ago (2016-01-26 09:10:49 UTC) #2
vabr (Chromium)
Hi Ilya, This is the follow-up I promised you in https://codereview.chromium.org/1582353006/diff/140001/components/autofill/core/browser/country_names.h#newcode28. PTAL. Thanks! Vaclav
4 years, 11 months ago (2016-01-26 09:12:36 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-26 10:10:34 UTC) #5
Ilya Sherman
LGTM. Thanks for the follow-up =)
4 years, 11 months ago (2016-01-26 22:13:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1635813003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1635813003/1
4 years, 11 months ago (2016-01-26 22:14:35 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-26 22:22:40 UTC) #9
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/aee53e9e6fd6d2c4877e78255d5f4416891de56e Cr-Commit-Position: refs/heads/master@{#371617}
4 years, 11 months ago (2016-01-26 22:24:45 UTC) #11
tfarina
There is a typo in the CL description, s/pasing/passing Also, I would change the subject ...
4 years, 11 months ago (2016-01-26 23:37:40 UTC) #12
vabr (Chromium)
4 years, 11 months ago (2016-01-27 08:28:44 UTC) #14
Message was sent while issue was closed.
On 2016/01/26 23:37:40, tfarina wrote:
> There is a typo in the CL description, s/pasing/passing
> 
> Also, I would change the subject somehow to say that you are changing the
> parameter of SetLocaleString to be by reference-to-const instead of by
value.You
> are saying that it takes, but currently it doesn't, sorry for the nitpicking.

Thanks, good points!

I edited the CL description, although that won't change the bug comment made by
bugdroid when this landed.

Cheers,
Vaclav

Powered by Google App Engine
This is Rietveld 408576698