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

Unified Diff: components/subresource_filter/core/common/indexed_ruleset.cc

Issue 2385533002: Replace usage of GURL(origin.Serialize()) with origin.GetURL() (Closed)
Patch Set: sync to #424762 Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/subresource_filter/core/common/indexed_ruleset.cc
diff --git a/components/subresource_filter/core/common/indexed_ruleset.cc b/components/subresource_filter/core/common/indexed_ruleset.cc
index 58985d85616aa14680a2680ef7cbd2c5324acdb2..307720e153a0f6af7d6738ef5b567bd4c64adc5a 100644
--- a/components/subresource_filter/core/common/indexed_ruleset.cc
+++ b/components/subresource_filter/core/common/indexed_ruleset.cc
@@ -362,7 +362,7 @@ bool IsThirdPartyUrl(const GURL& url, const url::Origin& first_party_origin) {
// TODO(pkalinnikov): Avoid converting Origin to GURL.
return first_party_origin.unique() ||
!net::registry_controlled_domains::SameDomainOrHost(
- url, GURL(first_party_origin.Serialize()),
+ url, first_party_origin.GetURL(),
net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES);
}
« no previous file with comments | « chrome/browser/ui/login/login_handler.cc ('k') | content/browser/cache_storage/cache_storage_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698