The class InProcessLaunchedVideoCaptureDevice operates a media::VideoCaptureDevice on a |device_task_runner_|. In the destructor, there is a fallback mechanism that first tries to schedule a task for stopping the device to |device_task_runner_| and, if that fails, performs the task directly.
It is currently unclear why this fallback mechanism was introduced, if it works, and if it is needed. It does not seem to be covered by any tests.
Proposal: Either add a test case that demonstrates that it works and does something useful or remove the fallback mechanism.
Comment 1 by chfremer@chromium.org
, Apr 14 2017