Chromium Code Reviews| Index: media/capture/video/linux/video_capture_device_factory_linux.cc |
| diff --git a/media/capture/video/linux/video_capture_device_factory_linux.cc b/media/capture/video/linux/video_capture_device_factory_linux.cc |
| index 14a1ca12e6b4c5679e1ed4efd5fc3df4b9aae3a2..12c9075f5c50cf92709ba58a857a371d1baa6b58 100644 |
| --- a/media/capture/video/linux/video_capture_device_factory_linux.cc |
| +++ b/media/capture/video/linux/video_capture_device_factory_linux.cc |
| @@ -228,6 +228,12 @@ void VideoCaptureDeviceFactoryLinux::GetDeviceDescriptors( |
| #endif |
| } |
| } |
| +#if defined(OS_CHROMEOS) |
|
hta - Chromium
2017/01/26 08:06:02
Note: I'd remove the #if. Consistent, testable cro
|
| + // Since JS doesn't have API to get camera facing, we sort the list to make |
| + // sure apps use the front camera by default. |
| + // TODO(henryhsu): remove this after JS API completed (crbug.com/543997). |
| + std::sort(device_descriptors->begin(), device_descriptors->end()); |
| +#endif |
| } |
| void VideoCaptureDeviceFactoryLinux::GetSupportedFormats( |