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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2255223002: Use the process-level MojoShellConnection to connect to mojo:media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Added comment with bug. Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 317829c0f9c1bafa77d962e25ef1f2102389e663..370bd2f436bcc2618698e033425cc6cbc59a6695 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -78,6 +78,7 @@
#include "content/public/common/file_chooser_file_info.h"
#include "content/public/common/file_chooser_params.h"
#include "content/public/common/isolated_world_ids.h"
+#include "content/public/common/mojo_shell_connection.h"
#include "content/public/common/url_constants.h"
#include "content/public/common/url_utils.h"
#include "device/geolocation/geolocation_service_context.h"
@@ -799,9 +800,10 @@ void RenderFrameHostImpl::Create(
registry->Bind(GetProxy(&interfaces));
media_registries_.push_back(std::move(registry));
+ // TODO(slan): Use the BrowserContext Connector instead. See crbug.com/638950.
media::mojom::MediaServicePtr media_service;
shell::Connector* connector =
- BrowserContext::GetShellConnectorFor(GetProcess()->GetBrowserContext());
+ MojoShellConnection::GetForProcess()->GetConnector();
connector->ConnectToInterface("mojo:media", &media_service);
media_service->CreateServiceFactory(std::move(request),
std::move(interfaces));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698