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

Unified Diff: url/origin.h

Issue 2067933002: Use correct origin when prompting for proxy authentication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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..538c5c36beee53b3168d28faf2c4afc0ec7afe19 100644
--- a/url/origin.h
+++ b/url/origin.h
@@ -121,6 +121,7 @@ class URL_EXPORT Origin {
bool operator==(const Origin& other) const {
return IsSameOriginWith(other);
}
+ bool operator!=(const Origin& other) const { return !(*this == other); }
// Allows Origin to be used as a key in STL (for example, a std::set or
// std::map).
« chrome/browser/ui/login/login_handler_unittest.cc ('K') | « net/url_request/url_request_ftp_job.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698