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

Unified Diff: media/capture/video/chromeos/video_capture_device_factory_chromeos.cc

Issue 2878233002: media: add ArcCamera3Service Mojo service (Closed)
Patch Set: Created 3 years, 7 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/chromeos/video_capture_device_factory_chromeos.cc
diff --git a/media/capture/video/chromeos/video_capture_device_factory_chromeos.cc b/media/capture/video/chromeos/video_capture_device_factory_chromeos.cc
index 982d4d4a8f79b5418896f8a99df41f43caf9df26..7a6bfc1022f0f909beaad3a3a7e6a92ec7398371 100644
--- a/media/capture/video/chromeos/video_capture_device_factory_chromeos.cc
+++ b/media/capture/video/chromeos/video_capture_device_factory_chromeos.cc
@@ -20,8 +20,16 @@ bool VideoCaptureDeviceFactoryChromeOS::Init() {
LOG(ERROR) << "Module thread failed to start";
return false;
}
+
+ if (!ArcCamera3Service::GetInstance()->is_started() &&
+ !ArcCamera3Service::GetInstance()->Start()) {
+ LOG(ERROR) << "Failed to start ArcCamera3Service";
+ return false;
+ }
+
camera_hal_delegate_ = new CameraHalDelegate(module_thread_.task_runner());
- return camera_hal_delegate_->StartCameraModuleIpc();
+ camera_hal_delegate_->Start();
+ return true;
}
std::unique_ptr<VideoCaptureDevice>

Powered by Google App Engine
This is Rietveld 408576698