Index: chrome/app/chrome_main_delegate.cc |
diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc |
index 2d0c7099fffd8ba0e4cb03186ef620d2a006ddc8..6fdbbad605f103c1c0013dc7e76c214887e23dc9 100644 |
--- a/chrome/app/chrome_main_delegate.cc |
+++ b/chrome/app/chrome_main_delegate.cc |
@@ -106,6 +106,10 @@ base::LazyInstance<chrome::ChromeBreakpadClient>::Leaky |
g_chrome_breakpad_client = LAZY_INSTANCE_INITIALIZER; |
#endif |
+#if defined (ENABLE_IPC_FUZZER) |
+extern int IpcFuzzerMain(const content::MainFunctionParams&); |
+#endif |
+ |
extern int NaClMain(const content::MainFunctionParams&); |
extern int ServiceProcessMain(const content::MainFunctionParams&); |
@@ -648,6 +652,12 @@ void ChromeMainDelegate::SandboxInitialized(const std::string& process_type) { |
int ChromeMainDelegate::RunProcess( |
const std::string& process_type, |
const content::MainFunctionParams& main_function_params) { |
+ |
+#if defined(ENABLE_IPC_FUZZER) |
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kIpcFuzzerOverride)) |
+ return IpcFuzzerMain(main_function_params); |
+#endif |
+ |
// ANDROID doesn't support "service", so no ServiceProcessMain, and arraysize |
// doesn't support empty array. So we comment out the block for Android. |
#if !defined(OS_ANDROID) |