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

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

Issue 2716583003: Rename Origin.unique() to opaque().
Patch Set: Update new uses post-rebase Created 3 years, 4 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/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);
}

Powered by Google App Engine
This is Rietveld 408576698