| Index: components/subresource_filter/core/common/first_party_origin.cc
|
| diff --git a/components/subresource_filter/core/common/first_party_origin.cc b/components/subresource_filter/core/common/first_party_origin.cc
|
| index 46a218f9962eb862aa8fcbbd71b240ec1545a0c0..9a1580abd37bf826ebbde08e9dd6a8772caa4963 100644
|
| --- a/components/subresource_filter/core/common/first_party_origin.cc
|
| +++ b/components/subresource_filter/core/common/first_party_origin.cc
|
| @@ -22,7 +22,7 @@ FirstPartyOrigin::FirstPartyOrigin(url::Origin document_origin)
|
| : document_origin_(std::move(document_origin)) {}
|
|
|
| bool FirstPartyOrigin::IsThirdParty(const GURL& url) const {
|
| - if (document_origin_.unique())
|
| + if (document_origin_.opaque())
|
| return true;
|
| base::StringPiece host_piece = url.host_piece();
|
| if (!last_checked_host_.empty() && host_piece == last_checked_host_)
|
| @@ -35,7 +35,7 @@ bool FirstPartyOrigin::IsThirdParty(const GURL& url) const {
|
|
|
| bool FirstPartyOrigin::IsThirdParty(const GURL& url,
|
| const url::Origin& first_party_origin) {
|
| - return first_party_origin.unique() ||
|
| + return first_party_origin.opaque() ||
|
| IsThirdPartyImpl(url, first_party_origin);
|
| }
|
|
|
|
|