Index: content/public/test/mock_render_process_host.cc |
diff --git a/content/public/test/mock_render_process_host.cc b/content/public/test/mock_render_process_host.cc |
index 0fa30ed7d731e775b473657cc22b2e9bafa806d3..bd08fa305404892afdda9a34fffa14f81cd70887 100644 |
--- a/content/public/test/mock_render_process_host.cc |
+++ b/content/public/test/mock_render_process_host.cc |
@@ -19,6 +19,7 @@ |
#include "content/common/child_process_host_impl.h" |
#include "content/common/frame_messages.h" |
#include "content/public/browser/browser_context.h" |
+#include "content/public/browser/browser_message_filter.h" |
#include "content/public/browser/global_request_id.h" |
#include "content/public/browser/notification_details.h" |
#include "content/public/browser/notification_service.h" |
@@ -26,6 +27,7 @@ |
#include "content/public/browser/notification_types.h" |
#include "content/public/browser/render_widget_host_iterator.h" |
#include "content/public/browser/storage_partition.h" |
+#include "ipc/message_filter.h" |
#if defined(ENABLE_BROWSER_CDMS) |
#include "media/base/media_keys.h" |
@@ -244,6 +246,7 @@ IPC::ChannelProxy* MockRenderProcessHost::GetChannel() { |
} |
void MockRenderProcessHost::AddFilter(BrowserMessageFilter* filter) { |
+ make_scoped_refptr(filter->GetFilter())->OnFilterAdded(&sink_); |
} |
bool MockRenderProcessHost::FastShutdownForPageCount(size_t count) { |