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

Unified Diff: content/common/media/media_stream_options.cc

Issue 10830063: refactor EnumerateDevices to make it a persistent request. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: code review Created 8 years, 5 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: content/common/media/media_stream_options.cc
===================================================================
--- content/common/media/media_stream_options.cc (revision 148913)
+++ content/common/media/media_stream_options.cc (working copy)
@@ -24,4 +24,12 @@
in_use(opened),
session_id(kNoId) {}
+bool StreamDeviceInfo::operator==(const StreamDeviceInfo& other) const {
tommi (sloooow) - chröme 2012/08/03 09:10:35 nit: Change this method to IsEqual() (we don't ove
wjia(left Chromium) 2012/08/03 21:53:45 This overloading is needed for StreamDeviceInfoArr
tommi (sloooow) - chröme 2012/08/04 09:27:08 You can use std::equal instead. See for example:
wjia(left Chromium) 2012/08/07 23:16:34 Done.
+ return stream_type == other.stream_type &&
+ name == other.name &&
+ device_id == other.device_id &&
+ in_use == other.in_use &&
+ session_id == other.session_id;
+}
+
} // namespace media_stream

Powered by Google App Engine
This is Rietveld 408576698