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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2514323004: Convert NaCl renderer-browser messages to mojo. (Closed)
Patch Set: rebase Created 3 years, 11 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: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index ccd794e351e1601387d3631c976e06545296fbb6..83fc89b403a6029d9baf92eb94d58c8e99b4f095 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -303,7 +303,7 @@
#if !defined(DISABLE_NACL)
#include "components/nacl/browser/nacl_browser.h"
-#include "components/nacl/browser/nacl_host_message_filter.h"
+#include "components/nacl/browser/nacl_host_impl.h"
#include "components/nacl/browser/nacl_process_host.h"
#include "components/nacl/common/nacl_process_type.h"
#include "components/nacl/common/nacl_switches.h"
@@ -1091,14 +1091,6 @@ void ChromeContentBrowserClient::RenderProcessWillLaunch(
audio_debug_recordings_handler));
#endif
-#if !defined(DISABLE_NACL)
- net::URLRequestContextGetter* context =
- host->GetStoragePartition()->GetURLRequestContext();
- host->AddFilter(new nacl::NaClHostMessageFilter(
- id, profile->IsOffTheRecord(),
- profile->GetPath(),
- context));
-#endif
#if defined(OS_ANDROID)
host->AddFilter(new cdm::CdmMessageFilterAndroid());
#endif
@@ -2975,6 +2967,13 @@ void ChromeContentBrowserClient::ExposeInterfacesToRenderer(
base::Bind(&metrics::LeakDetectorRemoteController::Create),
ui_task_runner);
#endif
+#if !defined(DISABLE_NACL)
+ Profile* profile =
+ Profile::FromBrowserContext(render_process_host->GetBrowserContext());
+ registry->AddInterface(
+ base::Bind(&nacl::NaClHostImpl::Create, render_process_host->GetID(),
+ profile->IsOffTheRecord(), profile->GetPath()));
+#endif
}
void ChromeContentBrowserClient::ExposeInterfacesToMediaService(

Powered by Google App Engine
This is Rietveld 408576698