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

Unified Diff: content/browser/mojo/mojo_shell_context.cc

Issue 2221153003: Establish MojoChildConnection from BrowserChildProcessHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderer-channel
Patch Set: rebase 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 | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/ppapi_plugin_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mojo/mojo_shell_context.cc
diff --git a/content/browser/mojo/mojo_shell_context.cc b/content/browser/mojo/mojo_shell_context.cc
index 7ad111dfd74a9317a9864001e119873c9ce31295..95f6ac6b7387649ffb331b67d0d9bda904edb547 100644
--- a/content/browser/mojo/mojo_shell_context.cc
+++ b/content/browser/mojo/mojo_shell_context.cc
@@ -75,7 +75,7 @@ void StartServiceInUtilityProcess(const std::string& service_name,
// Request shell::mojom::ServiceFactory from GPU process host. Must be called on
// IO thread.
void RequestGpuServiceFactory(shell::mojom::ServiceFactoryRequest request) {
- BrowserChildProcessHostDelegate* process_host =
+ GpuProcessHost* process_host =
GpuProcessHost::Get(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED);
if (!process_host) {
DLOG(ERROR) << "GPU process host not available.";
@@ -181,13 +181,11 @@ class MojoShellContext::InProcessServiceManagerContext
shell::mojom::ServicePtrInfo embedder_service_proxy_info) {
manifest_provider_ = std::move(manifest_provider);
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner =
- BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE);
+ base::SequencedWorkerPool* blocking_pool = BrowserThread::GetBlockingPool();
std::unique_ptr<shell::NativeRunnerFactory> native_runner_factory(
- new shell::InProcessNativeRunnerFactory(
- BrowserThread::GetBlockingPool()));
- catalog_.reset(new catalog::Catalog(
- file_task_runner.get(), nullptr, manifest_provider_.get()));
+ new shell::InProcessNativeRunnerFactory(blocking_pool));
+ catalog_.reset(
+ new catalog::Catalog(blocking_pool, nullptr, manifest_provider_.get()));
service_manager_.reset(new shell::ServiceManager(
std::move(native_runner_factory), catalog_->TakeService()));
@@ -210,7 +208,6 @@ class MojoShellContext::InProcessServiceManagerContext
DISALLOW_COPY_AND_ASSIGN(InProcessServiceManagerContext);
};
-
MojoShellContext::MojoShellContext() {
shell::mojom::ServiceRequest request;
if (shell::ShellIsRemote()) {
@@ -230,6 +227,8 @@ MojoShellContext::MojoShellContext() {
IDR_MOJO_CONTENT_BROWSER_MANIFEST);
manifest_provider->AddManifestResource(kGpuMojoApplicationName,
IDR_MOJO_CONTENT_GPU_MANIFEST);
+ manifest_provider->AddManifestResource(kPluginMojoApplicationName,
+ IDR_MOJO_CONTENT_PLUGIN_MANIFEST);
manifest_provider->AddManifestResource(kRendererMojoApplicationName,
IDR_MOJO_CONTENT_RENDERER_MANIFEST);
manifest_provider->AddManifestResource(kUtilityMojoApplicationName,
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/ppapi_plugin_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698