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

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

Issue 2675033002: [Media Router] Add MediaSink subtypes (Closed)
Patch Set: resolve code review comments from dcheng 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
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..213b0947dd1d6f1e51d65540e8a7946c4cc05cb6 100644
--- a/chrome/browser/media/router/media_sink.cc
+++ b/chrome/browser/media/router/media_sink.cc
@@ -25,6 +25,12 @@ 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::CompareUsingCollator(const MediaSink& other,
const icu::Collator* collator) const {
if (icon_type_ != other.icon_type_)

Powered by Google App Engine
This is Rietveld 408576698