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

Issue 2561363002: Add std::string constructors for Origin/SchemeHostPort to reduce copies (Closed)

Created:
4 years ago by Charlie Harrison
Modified:
4 years ago
Reviewers:
Charlie Reis, Mike West
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add std::string constructors for Origin/SchemeHostPort to reduce copies WebSecurityOrigin forwards temporaries to Origin. We should just use these, rather than consider them opaque StringPieces and copying data out of them. This CL also removes some dead code. BUG=672877 Committed: https://crrev.com/f07ac3c6704c3db574549ebc2f2e9880dcbf66b7 Cr-Commit-Position: refs/heads/master@{#438054}

Patch Set 1 #

Patch Set 2 : fix content_unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -41 lines) Patch
M content/child/blink_platform_impl_unittest.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M url/origin.h View 2 chunks +10 lines, -10 lines 0 comments Download
M url/origin.cc View 2 chunks +15 lines, -11 lines 0 comments Download
M url/origin_unittest.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M url/scheme_host_port.h View 1 chunk +2 lines, -2 lines 0 comments Download
M url/scheme_host_port.cc View 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 26 (17 generated)
Charlie Harrison
Mike, would you review this one? I do not really trust the move() to be ...
4 years ago (2016-12-09 19:01:22 UTC) #9
Mike West
LGTM. I agree that this looks reasonable based on the current usage.
4 years ago (2016-12-12 08:25:46 UTC) #12
Charlie Harrison
Thanks! +creis for some dead code removal in content unit test.
4 years ago (2016-12-12 13:20:55 UTC) #14
Charlie Reis
content/ LGTM
4 years ago (2016-12-12 17:39:27 UTC) #15
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/2561363002/20001
4 years ago (2016-12-12 17:40:12 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/277951)
4 years ago (2016-12-12 23:54:37 UTC) #19
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/2561363002/20001
4 years ago (2016-12-13 02:42:32 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-13 04:16:30 UTC) #24
commit-bot: I haz the power
4 years ago (2016-12-13 04:21:08 UTC) #26
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f07ac3c6704c3db574549ebc2f2e9880dcbf66b7
Cr-Commit-Position: refs/heads/master@{#438054}

Powered by Google App Engine
This is Rietveld 408576698