Only start CameraHalDispatcher when using cros-camera service
We already did this in Chrome [1], and we should also do it here to prevent confusing error messages for old devices that are not using cros-camera service. [1] https://cs.chromium.org/chromium/src/content/browser/renderer_host/media/media_stream_manager.cc?l=541&rcl=db450183134eacfd8b877f7c55ada55f52d4dd1f "bind /var/run/camera/camera3.sock: Permission denied (13)" on old devices. Bug: b:132770443 Test: Passes capture_unittests, and there is no error message like Change-Id: I02a0bab188a242b0690fb1f24f123305bb2d5dcf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1627273 Auto-Submit: Shik Chen <shik@chromium.org> Commit-Queue: Tommi <tommi@chromium.org> Reviewed-by:Tommi <tommi@chromium.org> Cr-Commit-Position: refs/heads/master@{#662583}
Showing
Please register or sign in to comment