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 684e0dbc6460556bbf79f4998266ebf6eaf4ac3e..a82eba022371c9382891d6f8d5c0ac0b992e545c 100644 |
--- a/content/browser/browser_child_process_host_impl.cc |
+++ b/content/browser/browser_child_process_host_impl.cc |
@@ -18,6 +18,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_usage_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" |
@@ -201,6 +202,12 @@ void BrowserChildProcessHostImpl::AddFilter(BrowserMessageFilter* filter) { |
child_process_host_->AddFilter(filter->GetFilter()); |
} |
+void BrowserChildProcessHostImpl::SetResourceUsageReporter( |
+ ResourceUsageReporterPtr service) { |
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ data_.process_resource_usage = new ProcessResourceUsageImpl(service.Pass()); |
+} |
+ |
void BrowserChildProcessHostImpl::NotifyProcessInstanceCreated( |
const ChildProcessData& data) { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |