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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2043933002: Move IPC fuzzer switches and helpers from chrome/common to content/common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove CONTENT_EXPORT Created 4 years, 6 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
« no previous file with comments | « content/renderer/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 1e16e9268384bf186adc18f163545a9f19364dbe..57f07f0b0758270da54d22a0b7754c25e19c2741 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -201,6 +201,10 @@
#include "content/renderer/mus/render_widget_window_tree_client_factory.h"
#endif
+#if defined(ENABLE_IPC_FUZZER)
+#include "content/common/external_ipc_dumper.h"
+#endif
+
using base::ThreadRestrictions;
using blink::WebDocument;
using blink::WebFrame;
@@ -706,6 +710,16 @@ void RenderThreadImpl::Init(
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
+#if defined(ENABLE_IPC_FUZZER)
+ if (command_line.HasSwitch(switches::kIpcDumpDirectory)) {
+ base::FilePath dump_directory =
+ command_line.GetSwitchValuePath(switches::kIpcDumpDirectory);
+ IPC::ChannelProxy::OutgoingMessageFilter* filter =
+ LoadExternalIPCDumper(dump_directory);
+ GetChannel()->set_outgoing_message_filter(filter);
+ }
+#endif
+
cc::SetClientNameForMetrics("Renderer");
is_threaded_animation_enabled_ =
« no previous file with comments | « content/renderer/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698