Index: url/origin.cc |
diff --git a/url/origin.cc b/url/origin.cc |
index a0ec2f803e6f2547bdcc443c338d06b68cefbb3a..97e24f208d5b2098df01078615a7791503d30fbf 100644 |
--- a/url/origin.cc |
+++ b/url/origin.cc |
@@ -80,4 +80,8 @@ std::ostream& operator<<(std::ostream& out, const url::Origin& origin) { |
return out << origin.Serialize(); |
} |
+bool IsSameOriginWith(const GURL& a, const GURL& b) { |
+ return Origin(a).IsSameOriginWith(Origin(b)); |
+} |
+ |
} // namespace url |