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

Unified Diff: url/origin.h

Issue 1862953002: Disallow use of Web Bluetooth from cross-origin iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 4 years, 8 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: url/origin.h
diff --git a/url/origin.h b/url/origin.h
index aab1f05a2013cc84cd4aedbb91a9e10b0df88307..24260636596b0cfc931827b6a6448fe636662020 100644
--- a/url/origin.h
+++ b/url/origin.h
@@ -137,6 +137,10 @@ URL_EXPORT std::ostream& operator<<(std::ostream& out, const Origin& origin);
URL_EXPORT bool IsSameOriginWith(const GURL& a, const GURL& b);
+inline URL_EXPORT bool operator!=(const Origin& a, const Origin& b) {
Jeffrey Yasskin 2016/04/06 05:38:31 I'm not certain it makes sense to have the non-ref
Mike West 2016/04/06 06:06:59 We only added `==` for nice output in tests from `
Jeffrey Yasskin 2016/04/06 06:17:15 Removed.
+ return !(a == b);
+}
+
} // namespace url
#endif // URL_ORIGIN_H_

Powered by Google App Engine
This is Rietveld 408576698