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

Issue 1350043004: Cleanup: Initialize Value from tools/gn by moving std::string (Closed)

Created:
5 years, 3 months ago by ki.stfu
Modified:
4 years, 6 months ago
Reviewers:
brettw, Nico, scottmg
CC:
chromium-reviews, tfarina, Paweł Hajdan Jr., Nico
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup: Initialize Value from tools/gn by moving std::string Previously it used string::swap, but std::move is more effective in this case. BUG=367418 TEST= R=brettw@chromium.org Committed: https://crrev.com/0b310e43469a5ef54d76661ec36e4a7e1ca09d3f Cr-Commit-Position: refs/heads/master@{#399012}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove Value(..., std::string&&) #

Total comments: 2

Patch Set 3 : Revert tools/gn/value.[cc|h] #

Patch Set 4 : Rebase against ToT #

Patch Set 5 : Pass by value and then move it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -4 lines) Patch
M tools/gn/value.cc View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
ki.stfu
5 years, 3 months ago (2015-09-20 20:16:52 UTC) #1
tfarina
Could you split out this change? testing/ -> phajdan.jr tools/clang -> thakis tools/gn -> brettw ...
5 years, 3 months ago (2015-09-22 17:55:19 UTC) #3
ki.stfu
phajdan.jr@: please review changed files in testing/ thakis@: please review tools/clang/ brettw@: please review tools/gn
5 years, 3 months ago (2015-09-23 05:01:55 UTC) #5
brettw
https://codereview.chromium.org/1350043004/diff/1/tools/gn/value.h File tools/gn/value.h (right): https://codereview.chromium.org/1350043004/diff/1/tools/gn/value.h#newcode36 tools/gn/value.h:36: Value(const ParseNode* origin, std::string&& str_val) noexcept; Same comment from ...
5 years, 3 months ago (2015-09-23 05:29:10 UTC) #6
ki.stfu
https://codereview.chromium.org/1350043004/diff/1/tools/gn/value.h File tools/gn/value.h (right): https://codereview.chromium.org/1350043004/diff/1/tools/gn/value.h#newcode36 tools/gn/value.h:36: Value(const ParseNode* origin, std::string&& str_val) noexcept; On 2015/09/23 05:29:10, ...
5 years, 3 months ago (2015-09-23 05:44:10 UTC) #7
ki.stfu
https://codereview.chromium.org/1350043004/diff/1/tools/gn/value.h File tools/gn/value.h (right): https://codereview.chromium.org/1350043004/diff/1/tools/gn/value.h#newcode36 tools/gn/value.h:36: Value(const ParseNode* origin, std::string&& str_val) noexcept; On 2015/09/23 05:29:10, ...
5 years, 3 months ago (2015-09-24 17:19:16 UTC) #8
brettw
https://codereview.chromium.org/1350043004/diff/20001/tools/gn/value.h File tools/gn/value.h (right): https://codereview.chromium.org/1350043004/diff/20001/tools/gn/value.h#newcode35 tools/gn/value.h:35: Value(const ParseNode* origin, const std::string& str_val); I think without ...
5 years, 3 months ago (2015-09-24 20:15:31 UTC) #9
ki.stfu
https://codereview.chromium.org/1350043004/diff/20001/tools/gn/value.h File tools/gn/value.h (right): https://codereview.chromium.org/1350043004/diff/20001/tools/gn/value.h#newcode35 tools/gn/value.h:35: Value(const ParseNode* origin, const std::string& str_val); On 2015/09/24 20:15:31, ...
5 years, 3 months ago (2015-09-24 20:54:29 UTC) #10
brettw
On 2015/09/24 20:54:29, ki.stfu wrote: > Probably yes. BTW, why we don't want to use ...
5 years, 3 months ago (2015-09-24 21:41:23 UTC) #11
ki.stfu
On 2015/09/24 21:41:23, brettw wrote: > On 2015/09/24 20:54:29, ki.stfu wrote: > > Probably yes. ...
5 years, 2 months ago (2015-09-27 07:35:26 UTC) #12
ki.stfu
The patch was split: Changes in testing/ were moved to https://codereview.chromium.org/2001093008/ Changes in tools/clang/ were ...
4 years, 7 months ago (2016-05-25 17:36:54 UTC) #15
ki.stfu
Friendly ping
4 years, 6 months ago (2016-06-03 19:10:03 UTC) #17
ki.stfu
Friendly ping
4 years, 6 months ago (2016-06-09 07:44:27 UTC) #19
scottmg
I would have made it a const& arg so I think you'll have to wait ...
4 years, 6 months ago (2016-06-09 15:10:14 UTC) #20
brettw
lgtm
4 years, 6 months ago (2016-06-09 16:52:15 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1350043004/80001
4 years, 6 months ago (2016-06-09 20:30:02 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-09 21:05:11 UTC) #25
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-09 21:05:30 UTC) #26
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 21:07:08 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0b310e43469a5ef54d76661ec36e4a7e1ca09d3f
Cr-Commit-Position: refs/heads/master@{#399012}

Powered by Google App Engine
This is Rietveld 408576698