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

Unified Diff: media/capture/video/video_capture_device_descriptor.h

Issue 2648973003: Sort camera device list to use front camera first (Closed)
Patch Set: remove #if Created 3 years, 11 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: media/capture/video/video_capture_device_descriptor.h
diff --git a/media/capture/video/video_capture_device_descriptor.h b/media/capture/video/video_capture_device_descriptor.h
index 84ff841dbf4347b67cc29e1534f66bd6cf7c1c53..b7e7819cfdd7d55c0c4ad8b8e7a60b6c653a6081 100644
--- a/media/capture/video/video_capture_device_descriptor.h
+++ b/media/capture/video/video_capture_device_descriptor.h
@@ -66,11 +66,7 @@ struct CAPTURE_EXPORT VideoCaptureDeviceDescriptor {
bool operator==(const VideoCaptureDeviceDescriptor& other) const {
return (other.device_id == device_id) && (other.capture_api == capture_api);
}
- bool operator<(const VideoCaptureDeviceDescriptor& other) const {
- if (device_id < other.device_id)
- return true;
- return capture_api < other.capture_api;
- }
+ bool operator<(const VideoCaptureDeviceDescriptor& other) const;
const char* GetCaptureApiTypeString() const;
// Friendly name of a device, plus the model identifier in parentheses.

Powered by Google App Engine
This is Rietveld 408576698