Chromium Code Reviews
Description[extensions] Remove unnecessary checks in IsSensitiveURL
The current code re-parses the url by removing the query and ref components
before sending the modified URL to IsWebstoreUpdateUrl. This is not
necessary, as IsWebstoreUpdateUrl will return true if the host and path
are identical.
Creating the modified URL takes ~3-4% of the total task time on the IOthread
when loading http://cr.kungfoo.net/loading/1000spacers/
This CL also cleans up checks in the IsSensitiveURL function.
BUG=664174, 664285
Committed: https://crrev.com/b8ec6582c1c86524b3cb47dbf65605213d35930e
Cr-Commit-Position: refs/heads/master@{#431432}
Patch Set 1 #
Total comments: 7
Patch Set 2 : Fix up code and write unit tests #
Total comments: 4
Patch Set 3 : more DomainIs #
Messages
Total messages: 25 (15 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||