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

Unified Diff: content/common/child_thread.cc

Issue 6711024: Example of how to interpose yourself in a message stream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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/common/child_thread.cc
===================================================================
--- content/common/child_thread.cc (revision 83074)
+++ content/common/child_thread.cc (working copy)
@@ -15,6 +15,7 @@
#include "content/common/notification_service.h"
#include "content/common/quota_dispatcher.h"
#include "content/common/resource_dispatcher.h"
+#include "content/common/set_ipc_fuzzing.h"
#include "content/common/socket_stream_dispatcher.h"
#include "ipc/ipc_logging.h"
#include "ipc/ipc_sync_channel.h"
@@ -66,6 +67,11 @@
channel_->AddFilter(new ChildTraceMessageFilter());
#endif
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableIPCFuzzing)) {
+ SetIPCFuzzing(channel_.get());
jam 2011/04/27 21:58:07 the code that you added in content should be in ch
+ }
+
// When running in unit tests, there is already a NotificationService object.
// Since only one can exist at a time per thread, check first.
if (!NotificationService::current())

Powered by Google App Engine
This is Rietveld 408576698