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

Issue 2287483002: Provide the equivalent of GURL::DomainIs for url::Origin. (Closed)

Created:
4 years, 3 months ago by pkalinnikov
Modified:
4 years, 3 months ago
Reviewers:
engedy, Mike West
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Provide the equivalent of GURL::DomainIs for url::Origin. Move the implementation of GURL::DomainIs into a shared function in url_util/, to be used both by GURL and url::Origin. The reason for this refactoring is to reap significant performance gains in scenarios where previously url::Origins had to be converted to GURLs for DomainIs checks. This involved string copying, allocations, and parsing the entire URL once again. BUG=517560 Committed: https://crrev.com/054f40334067cafe53af8518accbfcf3b0f803d9 Cr-Commit-Position: refs/heads/master@{#415606}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments of engedy@ #

Total comments: 4

Patch Set 3 : Minor changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -40 lines) Patch
M url/gurl.cc View 1 2 1 chunk +3 lines, -37 lines 0 comments Download
M url/origin.h View 1 chunk +3 lines, -0 lines 0 comments Download
M url/origin.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M url/origin_unittest.cc View 1 1 chunk +57 lines, -0 lines 0 comments Download
M url/url_util.h View 1 2 4 chunks +17 lines, -3 lines 0 comments Download
M url/url_util.cc View 1 1 chunk +37 lines, -0 lines 0 comments Download
M url/url_util_unittest.cc View 1 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
pkalinnikov
Balazs, please take an initial look.
4 years, 3 months ago (2016-08-26 12:52:03 UTC) #2
engedy
LGTM % comments Could you please elaborate a bit more in the CL description on ...
4 years, 3 months ago (2016-08-26 16:48:14 UTC) #4
pkalinnikov
https://codereview.chromium.org/2287483002/diff/1/url/origin_unittest.cc File url/origin_unittest.cc (right): https://codereview.chromium.org/2287483002/diff/1/url/origin_unittest.cc#newcode255 url/origin_unittest.cc:255: TEST(OriginTest, DomainIs) { On 2016/08/26 16:48:14, engedy wrote: > ...
4 years, 3 months ago (2016-08-29 09:53:00 UTC) #10
pkalinnikov
Mike, can you please review this?
4 years, 3 months ago (2016-08-29 09:56:59 UTC) #12
Mike West
LGTM
4 years, 3 months ago (2016-08-30 09:32:13 UTC) #16
engedy
Still, LGTM, just two small nits. Thanks! https://codereview.chromium.org/2287483002/diff/20001/url/gurl.cc File url/gurl.cc (right): https://codereview.chromium.org/2287483002/diff/20001/url/gurl.cc#newcode494 url/gurl.cc:494: if (!is_valid_ ...
4 years, 3 months ago (2016-08-30 17:13:13 UTC) #17
pkalinnikov
https://codereview.chromium.org/2287483002/diff/20001/url/gurl.cc File url/gurl.cc (right): https://codereview.chromium.org/2287483002/diff/20001/url/gurl.cc#newcode494 url/gurl.cc:494: if (!is_valid_ || lower_ascii_domain.empty()) On 2016/08/30 17:13:13, engedy wrote: ...
4 years, 3 months ago (2016-08-31 08:43:10 UTC) #18
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/2287483002/40001
4 years, 3 months ago (2016-08-31 10:50:34 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-31 10:54:35 UTC) #27
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 10:58:13 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/054f40334067cafe53af8518accbfcf3b0f803d9
Cr-Commit-Position: refs/heads/master@{#415606}

Powered by Google App Engine
This is Rietveld 408576698