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

Unified Diff: content/renderer/media/video_capture_impl.cc

Issue 2755813002: Begin to wean child processes off reliance on a persistent service_manager::Connection to the brows… (Closed)
Patch Set: . Created 3 years, 9 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/renderer/media/video_capture_impl.cc
diff --git a/content/renderer/media/video_capture_impl.cc b/content/renderer/media/video_capture_impl.cc
index 7381c63c39ad5c91b3ba8098d1fb4f9594247bbb..4650bbbbf8b08687c031392239d137a9c940da52 100644
--- a/content/renderer/media/video_capture_impl.cc
+++ b/content/renderer/media/video_capture_impl.cc
@@ -20,11 +20,12 @@
#include "base/trace_event/trace_event.h"
#include "content/child/child_process.h"
#include "content/public/child/child_thread.h"
+#include "content/public/common/service_names.mojom.h"
#include "media/base/bind_to_current_loop.h"
#include "media/base/limits.h"
#include "media/base/video_frame.h"
#include "mojo/public/cpp/system/platform_handle.h"
-#include "services/service_manager/public/cpp/interface_provider.h"
+#include "services/service_manager/public/cpp/connector.h"
namespace content {
@@ -75,7 +76,8 @@ VideoCaptureImpl::VideoCaptureImpl(media::VideoCaptureSessionId session_id)
if (ChildThread::Get()) { // This will be null in unit tests.
mojom::VideoCaptureHostPtr temp_video_capture_host;
- ChildThread::Get()->GetRemoteInterfaces()->GetInterface(
+ ChildThread::Get()->GetConnector()->BindInterface(
+ mojom::kBrowserServiceName,
mojo::MakeRequest(&temp_video_capture_host));
video_capture_host_info_ = temp_video_capture_host.PassInterface();
}
« no previous file with comments | « content/renderer/gamepad_shared_memory_reader.cc ('k') | content/renderer/mojo/blink_interface_provider_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698