Index: content/browser/browser_child_process_host_impl.cc |
diff --git a/content/browser/browser_child_process_host_impl.cc b/content/browser/browser_child_process_host_impl.cc |
index e606902637c531f0d45b60f0ebb771bb58b44bc0..e085693c7741aa1a028eb0c5403d678957a8bf79 100644 |
--- a/content/browser/browser_child_process_host_impl.cc |
+++ b/content/browser/browser_child_process_host_impl.cc |
@@ -16,6 +16,7 @@ |
#include "base/synchronization/waitable_event.h" |
#include "content/browser/histogram_message_filter.h" |
#include "content/browser/loader/resource_message_filter.h" |
+#include "content/browser/process_resource_impl.h" |
#include "content/browser/profiler_message_filter.h" |
#include "content/browser/tracing/trace_message_filter.h" |
#include "content/common/child_process_host_impl.h" |
@@ -27,6 +28,7 @@ |
#include "content/public/common/content_switches.h" |
#include "content/public/common/process_type.h" |
#include "content/public/common/result_codes.h" |
+#include "content/public/common/service_registry.h" |
#if defined(OS_MACOSX) |
#include "content/browser/mach_broker_mac.h" |
@@ -203,6 +205,13 @@ void BrowserChildProcessHostImpl::AddFilter(BrowserMessageFilter* filter) { |
child_process_host_->AddFilter(filter->GetFilter()); |
} |
+void BrowserChildProcessHostImpl::SetServiceRegistry( |
+ ServiceRegistry* registry) { |
+ ProcessResourceServicePtr service; |
+ registry->ConnectToRemoteService(&service); |
+ data_.process_resource = new ProcessResourceImpl(service.Pass()); |
+} |
+ |
void BrowserChildProcessHostImpl::NotifyProcessInstanceCreated( |
const ChildProcessData& data) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |