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

Issue 2172353002: [Extensions] Use rvalue references for SimpleFeature setters (Closed)

Created:
4 years, 5 months ago by Devlin
Modified:
4 years, 5 months ago
Reviewers:
lazyboy
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Use rvalue references for SimpleFeature setters Use rvalue references in SimpleFeature setters, rather than passing in a const reference. In the generated code these setters are used in, the values are all constructed in-place, so no copy is performed. This then allows us to use move assignment operaters in SimpleFeature, thus avoiding a copy. BUG=280286 Committed: https://crrev.com/7a54e03af255cf365d7260324d9872aa94dd7ec1 Cr-Commit-Position: refs/heads/master@{#407334}

Patch Set 1 #

Total comments: 2

Patch Set 2 : rvalue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -21 lines) Patch
M extensions/common/features/simple_feature.h View 1 2 chunks +15 lines, -21 lines 0 comments Download
M extensions/common/features/simple_feature.cc View 1 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
Devlin
4 years, 5 months ago (2016-07-22 20:15:39 UTC) #6
lazyboy
I have one q. https://codereview.chromium.org/2172353002/diff/1/extensions/common/features/simple_feature.h File extensions/common/features/simple_feature.h (right): https://codereview.chromium.org/2172353002/diff/1/extensions/common/features/simple_feature.h#newcode111 extensions/common/features/simple_feature.h:111: void set_command_line_switch(std::string command_line_switch); (trying to ...
4 years, 5 months ago (2016-07-22 20:58:24 UTC) #7
Devlin
https://codereview.chromium.org/2172353002/diff/1/extensions/common/features/simple_feature.h File extensions/common/features/simple_feature.h (right): https://codereview.chromium.org/2172353002/diff/1/extensions/common/features/simple_feature.h#newcode111 extensions/common/features/simple_feature.h:111: void set_command_line_switch(std::string command_line_switch); On 2016/07/22 20:58:23, lazyboy wrote: > ...
4 years, 5 months ago (2016-07-22 21:27:35 UTC) #8
lazyboy
On 2016/07/22 21:27:35, Devlin wrote: > https://codereview.chromium.org/2172353002/diff/1/extensions/common/features/simple_feature.h > File extensions/common/features/simple_feature.h (right): > > https://codereview.chromium.org/2172353002/diff/1/extensions/common/features/simple_feature.h#newcode111 > ...
4 years, 5 months ago (2016-07-22 23:42:16 UTC) #9
Devlin
On 2016/07/22 23:42:16, lazyboy wrote: > Think it's fine to break the rule for one-off ...
4 years, 5 months ago (2016-07-23 00:44:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2172353002/20001
4 years, 5 months ago (2016-07-23 02:09:05 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-23 03:32:56 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-07-23 03:34:16 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7a54e03af255cf365d7260324d9872aa94dd7ec1
Cr-Commit-Position: refs/heads/master@{#407334}

Powered by Google App Engine
This is Rietveld 408576698