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

Unified Diff: chrome/app/chrome_main_delegate.cc

Issue 18254010: IPC fuzzer child process component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missed some files Created 7 years, 5 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: 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)

Powered by Google App Engine
This is Rietveld 408576698