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

Issue 2391383003: Add Origin::CreateFromNormalizedTuple and call from WebSecurityOrigin (Closed)

Created:
4 years, 2 months ago by Charlie Harrison
Modified:
4 years, 2 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Origin::CreateFromNormalizedTuple and call from WebSecurityOrigin BUG= Committed: https://crrev.com/edf893fee347ad915af17f4abbf19e19e3131898 Cr-Commit-Position: refs/heads/master@{#424643}

Patch Set 1 #

Patch Set 2 : tests, casts, gophers, oh my! #

Patch Set 3 : fix up dchecks #

Patch Set 4 : fix up logic #

Patch Set 5 : loosen checks #

Total comments: 5

Patch Set 6 : mkwst review #

Total comments: 2

Patch Set 7 : ncarter review #

Total comments: 1

Patch Set 8 : git cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -17 lines) Patch
M content/child/blink_platform_impl_unittest.cc View 1 2 3 4 5 6 7 4 chunks +103 lines, -4 lines 0 comments Download
M third_party/WebKit/public/platform/WebSecurityOrigin.h View 1 chunk +1 line, -1 line 0 comments Download
M url/origin.h View 1 2 3 4 5 3 chunks +13 lines, -3 lines 0 comments Download
M url/origin.cc View 1 2 3 4 5 2 chunks +12 lines, -3 lines 0 comments Download
M url/scheme_host_port.h View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
M url/scheme_host_port.cc View 1 2 3 4 5 6 chunks +28 lines, -6 lines 0 comments Download

Messages

Total messages: 49 (35 generated)
Charlie Harrison
Hey Mike, here is a first pass at the fast-path WebSecurityOrigin->Origin conversion. Unfortunately to keep ...
4 years, 2 months ago (2016-10-07 14:12:24 UTC) #18
Mike West
LGTM! Modulo the gopher bit, which I don't think we need? https://codereview.chromium.org/2391383003/diff/80001/third_party/WebKit/Source/platform/weborigin/KnownPorts.cpp File third_party/WebKit/Source/platform/weborigin/KnownPorts.cpp (right): ...
4 years, 2 months ago (2016-10-11 08:38:33 UTC) #23
Charlie Harrison
Thanks! https://codereview.chromium.org/2391383003/diff/80001/content/child/blink_platform_impl_unittest.cc File content/child/blink_platform_impl_unittest.cc (right): https://codereview.chromium.org/2391383003/diff/80001/content/child/blink_platform_impl_unittest.cc#newcode67 content/child/blink_platform_impl_unittest.cc:67: {"gopher://example.com/", "gopher", "example.com", 70}, FYI: The gopher changes ...
4 years, 2 months ago (2016-10-11 11:58:10 UTC) #24
Charlie Harrison
+nick for //content OWNERS. https://codereview.chromium.org/2391383003/diff/80001/url/origin.cc File url/origin.cc (right): https://codereview.chromium.org/2391383003/diff/80001/url/origin.cc#newcode64 url/origin.cc:64: return Origin(scheme, host, port, true ...
4 years, 2 months ago (2016-10-11 16:29:55 UTC) #28
ncarter (slow)
https://codereview.chromium.org/2391383003/diff/80001/third_party/WebKit/Source/platform/weborigin/KnownPorts.cpp File third_party/WebKit/Source/platform/weborigin/KnownPorts.cpp (right): https://codereview.chromium.org/2391383003/diff/80001/third_party/WebKit/Source/platform/weborigin/KnownPorts.cpp#newcode51 third_party/WebKit/Source/platform/weborigin/KnownPorts.cpp:51: return protocol == "gopher"; On 2016/10/11 08:38:33, Mike West ...
4 years, 2 months ago (2016-10-11 18:21:52 UTC) #31
Charlie Harrison
On 2016/10/11 18:21:52, ncarter wrote: > https://codereview.chromium.org/2391383003/diff/80001/third_party/WebKit/Source/platform/weborigin/KnownPorts.cpp > File third_party/WebKit/Source/platform/weborigin/KnownPorts.cpp (right): > > https://codereview.chromium.org/2391383003/diff/80001/third_party/WebKit/Source/platform/weborigin/KnownPorts.cpp#newcode51 > ...
4 years, 2 months ago (2016-10-11 18:24:33 UTC) #32
ncarter (slow)
content lgtm https://codereview.chromium.org/2391383003/diff/100001/content/child/blink_platform_impl_unittest.cc File content/child/blink_platform_impl_unittest.cc (right): https://codereview.chromium.org/2391383003/diff/100001/content/child/blink_platform_impl_unittest.cc#newcode85 content/child/blink_platform_impl_unittest.cc:85: {"blob:http://u:p@example.com/guid-goes-here", "http", "example.com", 80}, Should we add ...
4 years, 2 months ago (2016-10-11 18:26:57 UTC) #33
Charlie Harrison
Thanks https://codereview.chromium.org/2391383003/diff/100001/content/child/blink_platform_impl_unittest.cc File content/child/blink_platform_impl_unittest.cc (right): https://codereview.chromium.org/2391383003/diff/100001/content/child/blink_platform_impl_unittest.cc#newcode85 content/child/blink_platform_impl_unittest.cc:85: {"blob:http://u:p@example.com/guid-goes-here", "http", "example.com", 80}, On 2016/10/11 18:26:57, ncarter ...
4 years, 2 months ago (2016-10-11 23:10:22 UTC) #34
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/2391383003/120001
4 years, 2 months ago (2016-10-11 23:17:38 UTC) #40
ncarter (slow)
https://codereview.chromium.org/2391383003/diff/120001/content/child/blink_platform_impl_unittest.cc File content/child/blink_platform_impl_unittest.cc (right): https://codereview.chromium.org/2391383003/diff/120001/content/child/blink_platform_impl_unittest.cc#newcode86 content/child/blink_platform_impl_unittest.cc:86: {"blob:https://example.co.uk/guid-goes-here", "https", "example.co.uk", 443}, 80 cols.
4 years, 2 months ago (2016-10-11 23:29:46 UTC) #41
Charlie Harrison
Good catch :)
4 years, 2 months ago (2016-10-11 23:35:09 UTC) #43
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/2391383003/140001
4 years, 2 months ago (2016-10-11 23:36:01 UTC) #46
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 2 months ago (2016-10-12 01:43:20 UTC) #47
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 01:48:26 UTC) #49
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/edf893fee347ad915af17f4abbf19e19e3131898
Cr-Commit-Position: refs/heads/master@{#424643}

Powered by Google App Engine
This is Rietveld 408576698