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

Unified Diff: content/browser/renderer_host/media/service_video_capture_device_launcher.cc

Issue 2867213004: [Mojo Video Capture] Hook up video capture service behind a feature flag (Closed)
Patch Set: Incorporate more suggestions from Patch Set 3 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: content/browser/renderer_host/media/service_video_capture_device_launcher.cc
diff --git a/content/browser/renderer_host/media/service_video_capture_device_launcher.cc b/content/browser/renderer_host/media/service_video_capture_device_launcher.cc
index b74cf52865a5a817f84c712489d31c1dc6316391..9d7fd377ba85a2ab962a0be631ede2a83c6b7abb 100644
--- a/content/browser/renderer_host/media/service_video_capture_device_launcher.cc
+++ b/content/browser/renderer_host/media/service_video_capture_device_launcher.cc
@@ -88,9 +88,10 @@ void ServiceVideoCaptureDeviceLauncher::LaunchDeviceAsync(
return;
}
video_capture::mojom::DevicePtr device;
+ auto device_request = mojo::MakeRequest(&device);
(*device_factory_)
->CreateDevice(
- device_id, mojo::MakeRequest(&device),
+ device_id, std::move(device_request),
mcasas 2017/05/12 22:07:02 Why this change?
chfremer 2017/05/12 23:30:21 I'll add a comment to the code. TL;DR is this was
base::Bind(
// Use of Unretained |this| is safe, because |done_cb| guarantees
// that |this| stays alive.

Powered by Google App Engine
This is Rietveld 408576698