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

Issue 1360533002: Cleanup: Initialize GURL by moving std::string (Closed)

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

Description

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

Patch Set 1 #

Total comments: 7

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

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

Messages

Total messages: 26 (7 generated)
ki.stfu
5 years, 3 months ago (2015-09-20 20:17:56 UTC) #1
ki.stfu
+pkasting https://codereview.chromium.org/1360533002/diff/1/url/gurl.h File url/gurl.h (right): https://codereview.chromium.org/1360533002/diff/1/url/gurl.h#newcode51 url/gurl.h:51: // can convert from WebURL without copying the ...
5 years, 3 months ago (2015-09-21 05:55:55 UTC) #3
brettw
According to the style guide: https://chromium-cpp.appspot.com/ additions of rvalue references should be approved by the ...
5 years, 3 months ago (2015-09-21 06:01:24 UTC) #4
ki.stfu
+danakj@chromium.org, jamesr@chromium.org, thakis@chromium.org What about the use of rvalue reference in GURL::GURL? Link to discussion: ...
5 years, 2 months ago (2015-10-01 07:20:52 UTC) #6
Peter Kasting
On 2015/10/01 07:20:52, ki.stfu wrote: > mailto:+danakj@chromium.org, mailto:jamesr@chromium.org, mailto:thakis@chromium.org > > What about the use ...
4 years, 7 months ago (2016-04-29 02:08:39 UTC) #7
danakj
https://codereview.chromium.org/1360533002/diff/1/url/gurl.cc File url/gurl.cc (right): https://codereview.chromium.org/1360533002/diff/1/url/gurl.cc#newcode113 url/gurl.cc:113: : spec_(std::move(canonical_spec)), Doing this instead of swap is cool. ...
4 years, 7 months ago (2016-04-29 02:17:54 UTC) #8
ki.stfu
https://codereview.chromium.org/1360533002/diff/1/url/gurl.cc File url/gurl.cc (right): https://codereview.chromium.org/1360533002/diff/1/url/gurl.cc#newcode113 url/gurl.cc:113: : spec_(std::move(canonical_spec)), On 2016/04/29 02:17:54, danakj wrote: > Doing ...
4 years, 7 months ago (2016-05-25 16:53:33 UTC) #9
danakj
https://codereview.chromium.org/1360533002/diff/1/url/gurl.h File url/gurl.h (right): https://codereview.chromium.org/1360533002/diff/1/url/gurl.h#newcode58 url/gurl.h:58: GURL(std::string&& canonical_spec, const url::Parsed& parsed, On 2016/05/25 16:53:33, ki.stfu ...
4 years, 7 months ago (2016-05-25 19:59:37 UTC) #10
ki.stfu
https://codereview.chromium.org/1360533002/diff/1/url/gurl.h File url/gurl.h (right): https://codereview.chromium.org/1360533002/diff/1/url/gurl.h#newcode58 url/gurl.h:58: GURL(std::string&& canonical_spec, const url::Parsed& parsed, On 2016/05/25 19:59:37, danakj ...
4 years, 7 months ago (2016-05-26 05:15:30 UTC) #11
brettw
I think perfect forwarding is writing a function that exactly wraps some other function which ...
4 years, 7 months ago (2016-05-26 23:18:04 UTC) #12
danakj
On Wed, May 25, 2016 at 10:15 PM, ki.stfu@gmail.com via codereview.chromium.org <reply@chromiumcodereview-hr.appspotmail.com> wrote: > > ...
4 years, 7 months ago (2016-05-27 00:06:20 UTC) #13
danakj
On Thu, May 26, 2016 at 4:18 PM, <brettw@chromium.org> wrote: > I think perfect forwarding ...
4 years, 7 months ago (2016-05-27 00:09:01 UTC) #14
brettw
There was a thread on the internal C style list and I also did some ...
4 years, 6 months ago (2016-05-28 01:05:33 UTC) #15
ki.stfu
Friendly ping
4 years, 6 months ago (2016-06-03 19:09:32 UTC) #17
Peter Kasting
Removing myself as multiple other reviewers are more familiar with this stuff than me.
4 years, 6 months ago (2016-06-03 19:47:45 UTC) #19
brettw
lgtm
4 years, 6 months ago (2016-06-03 20:46:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360533002/20001
4 years, 6 months ago (2016-06-04 04:09:59 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-04 07:05:50 UTC) #24
commit-bot: I haz the power
4 years, 6 months ago (2016-06-04 07:07:28 UTC) #26
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cebea5e61b469ae80032d9c45ffe1f086af6adc7
Cr-Commit-Position: refs/heads/master@{#397908}

Powered by Google App Engine
This is Rietveld 408576698