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

Unified Diff: chrome/browser/media/router/media_sink.cc

Issue 2675033002: [Media Router] Add MediaSink subtypes (Closed)
Patch Set: resolve code review comments from Derek and Mark Created 3 years, 9 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
« no previous file with comments | « chrome/browser/media/router/media_sink.h ('k') | chrome/browser/media/router/mojo/media_router.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/router/media_sink.cc
diff --git a/chrome/browser/media/router/media_sink.cc b/chrome/browser/media/router/media_sink.cc
index 96864354a79fb293077637247966f33bd0384a23..a48435030972946f1a9283967848fe35a24d63d2 100644
--- a/chrome/browser/media/router/media_sink.cc
+++ b/chrome/browser/media/router/media_sink.cc
@@ -25,6 +25,16 @@ bool MediaSink::Equals(const MediaSink& other) const {
return sink_id_ == other.sink_id_;
}
+bool MediaSink::operator==(const MediaSink& other) const {
+ return sink_id_ == other.sink_id_ && name_ == other.name_ &&
+ description_ == other.description_ && domain_ == other.domain_ &&
+ icon_type_ == other.icon_type_;
+}
+
+bool MediaSink::operator!=(const MediaSink& other) const {
+ return !operator==(other);
+}
+
bool MediaSink::CompareUsingCollator(const MediaSink& other,
const icu::Collator* collator) const {
if (icon_type_ != other.icon_type_)
« no previous file with comments | « chrome/browser/media/router/media_sink.h ('k') | chrome/browser/media/router/mojo/media_router.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698