Chromium Code Reviews| 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..7b50f5ae063c34b7bb9e180bff4b6207f8dc67aa 100644 |
| --- a/chrome/app/chrome_main_delegate.cc |
| +++ b/chrome/app/chrome_main_delegate.cc |
| @@ -106,6 +106,7 @@ base::LazyInstance<chrome::ChromeBreakpadClient>::Leaky |
| g_chrome_breakpad_client = LAZY_INSTANCE_INITIALIZER; |
| #endif |
| +extern int IpcFuzzerMain(const content::MainFunctionParams&); |
|
Tom Sepez
2013/07/12 18:47:20
#if defined(ENABLE_IPC_FUZZER) around this prototy
aedla
2013/07/15 16:12:08
Done.
|
| extern int NaClMain(const content::MainFunctionParams&); |
| extern int ServiceProcessMain(const content::MainFunctionParams&); |
| @@ -648,6 +649,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) |