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

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

Issue 2878233002: media: add ArcCamera3Service Mojo service (Closed)
Patch Set: rebase on latest patch set of issue 2837273004 Created 3 years, 6 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
« no previous file with comments | « media/capture/video/chromeos/video_capture_device_factory_chromeos.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fe072fb215701d2b89c099db8e90f6ef20c59804..7e47f988d731f4c32843fef01b1a1a7a6d870848 100644
--- a/media/capture/video/chromeos/video_capture_device_factory_chromeos.cc
+++ b/media/capture/video/chromeos/video_capture_device_factory_chromeos.cc
@@ -24,9 +24,17 @@ 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(camera_hal_ipc_thread_.task_runner());
- return camera_hal_delegate_->StartCameraModuleIpc();
+ camera_hal_delegate_->RegisterCameraClient();
+ return true;
}
std::unique_ptr<VideoCaptureDevice>
« no previous file with comments | « media/capture/video/chromeos/video_capture_device_factory_chromeos.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698