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( |