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

Unified Diff: net/base/registry_controlled_domains/registry_controlled_domain.cc

Issue 2385533002: Replace usage of GURL(origin.Serialize()) with origin.GetURL() (Closed)
Patch Set: rebase and fix up some includes 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
« ios/web/public/origin_util.mm ('K') | « ios/web/public/origin_util.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/registry_controlled_domains/registry_controlled_domain.cc
diff --git a/net/base/registry_controlled_domains/registry_controlled_domain.cc b/net/base/registry_controlled_domains/registry_controlled_domain.cc
index 8d379ba91b7f486df8d6593bf76ff13de8b5f885..4d0d781186cc5643e138691bb42aeb2bdc1b5eec 100644
--- a/net/base/registry_controlled_domains/registry_controlled_domain.cc
+++ b/net/base/registry_controlled_domains/registry_controlled_domain.cc
@@ -219,8 +219,7 @@ bool SameDomainOrHost(
bool SameDomainOrHost(const url::Origin& origin1,
const url::Origin& origin2,
PrivateRegistryFilter filter) {
- return SameDomainOrHost(GURL(origin1.Serialize()), GURL(origin2.Serialize()),
- filter);
+ return SameDomainOrHost(origin1.GetURL(), origin2.GetURL(), filter);
}
size_t GetRegistryLength(
« ios/web/public/origin_util.mm ('K') | « ios/web/public/origin_util.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698