Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: content/public/test/mock_render_process_host.cc

Issue 1706503002: Add enterprise policy to turn off Bluetooth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Release the BrowserMessageFilter::Internal once it has attached the Sender. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698