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_) |