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

Issue 2668213002: Remove Origin->GURL conversion in DocumentSubresourceFilter (Closed)

Created:
3 years, 10 months ago by Charlie Harrison
Modified:
3 years, 10 months ago
Reviewers:
engedy, pkalinnikov
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove Origin->GURL conversion in DocumentSubresourceFilter SameDomainOrHost was recently changed [1] to allow for comparing Origins and GURLs, so we should remove the extra URL parsing here, which is a very expensive operation. [1] https://codereview.chromium.org/2568133007/ BUG=651554 Review-Url: https://codereview.chromium.org/2668213002 Cr-Commit-Position: refs/heads/master@{#447576} Committed: https://chromium.googlesource.com/chromium/src/+/37f125e437377ad9b3b988edac21075c75ec5432

Patch Set 1 #

Total comments: 5

Patch Set 2 : reviews (std::string::assign + comment) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -22 lines) Patch
M components/subresource_filter/core/common/first_party_origin.h View 1 1 chunk +6 lines, -11 lines 0 comments Download
M components/subresource_filter/core/common/first_party_origin.cc View 1 1 chunk +8 lines, -11 lines 0 comments Download

Messages

Total messages: 22 (16 generated)
Charlie Harrison
Hi engedy, I am just starting to look at this code and I found this ...
3 years, 10 months ago (2017-02-01 04:58:16 UTC) #6
engedy
LGTM % a phrasing suggestion. @Pavel, you had some plans to improve performance around here. ...
3 years, 10 months ago (2017-02-01 09:49:50 UTC) #11
pkalinnikov
LGTM % comments. This is very relevant, thank you for fixing the TODO. https://codereview.chromium.org/2668213002/diff/1/components/subresource_filter/core/common/first_party_origin.cc File ...
3 years, 10 months ago (2017-02-01 10:16:39 UTC) #12
Charlie Harrison
Thanks!! https://codereview.chromium.org/2668213002/diff/1/components/subresource_filter/core/common/first_party_origin.cc File components/subresource_filter/core/common/first_party_origin.cc (right): https://codereview.chromium.org/2668213002/diff/1/components/subresource_filter/core/common/first_party_origin.cc#newcode30 components/subresource_filter/core/common/first_party_origin.cc:30: last_checked_host_ = url.host(); On 2017/02/01 10:16:39, pkalinnikov wrote: ...
3 years, 10 months ago (2017-02-01 18:11:26 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/2668213002/20001
3 years, 10 months ago (2017-02-01 18:11:54 UTC) #19
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 19:27:31 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/37f125e437377ad9b3b988edac21...

Powered by Google App Engine
This is Rietveld 408576698