Index: content/common/child_thread.cc |
=================================================================== |
--- content/common/child_thread.cc (revision 140625) |
+++ content/common/child_thread.cc (working copy) |
@@ -10,6 +10,7 @@ |
#include "base/process.h" |
#include "base/string_util.h" |
#include "base/tracked_objects.h" |
+#include "content/common/child_histogram_message_filter.h" |
#include "content/common/child_process.h" |
#include "content/common/child_process_messages.h" |
#include "content/common/child_trace_message_filter.h" |
@@ -59,6 +60,9 @@ |
sync_message_filter_ = |
new IPC::SyncMessageFilter(ChildProcess::current()->GetShutDownEvent()); |
+ histogram_message_filter_ = new content::ChildHistogramMessageFilter(); |
+ |
+ channel_->AddFilter(histogram_message_filter_.get()); |
jar (doing other things)
2012/07/09 23:04:12
Where is the corresponding code for the profiler?
ramant (doing other things)
2012/07/11 23:52:54
ChildThread::OnMessageReceive implemented GetChild
|
channel_->AddFilter(sync_message_filter_.get()); |
channel_->AddFilter(new ChildTraceMessageFilter()); |
} |
@@ -68,6 +72,7 @@ |
IPC::Logging::GetInstance()->SetIPCSender(NULL); |
#endif |
+ channel_->RemoveFilter(histogram_message_filter_.get()); |
channel_->RemoveFilter(sync_message_filter_.get()); |
// Close this channel before resetting the message loop attached to it so |