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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 18254010: IPC fuzzer child process component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 7 years, 3 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/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 5f8c5d275a3d232c066e26ed9d0f6af2344d1ed7..ad46fe01db7a12ba1a639984b48b5dc2227b158e 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1334,6 +1334,14 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
if (browser_command_line.HasSwitch(switches::kChromeFrame))
command_line->AppendSwitch(switches::kChromeFrame);
+#if defined(ENABLE_IPC_FUZZER)
+ static const char* const kIpcFuzzerSwitches[] = {
+ switches::kIpcFuzzerTestcase,
+ };
+ command_line->CopySwitchesFrom(browser_command_line, kIpcFuzzerSwitches,
+ arraysize(kIpcFuzzerSwitches));
jochen (gone - plz use gerrit) 2013/10/31 10:47:00 for just one switch, using a static array seems to
aedla 2013/11/26 17:09:50 I don't like it either. Other callers of CopySwitc
+#endif
+
if (process_type == switches::kRendererProcess) {
base::FilePath user_data_dir =
browser_command_line.GetSwitchValuePath(switches::kUserDataDir);
« no previous file with comments | « build/common.gypi ('k') | chrome/common/chrome_switches.h » ('j') | tools/ipc_fuzzer/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698