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); |
} |