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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 975903002: Add a flag to dump IPC messages sent from the renderer to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove BUILD.gn changes, since the IPC fuzzer doesn't work with gn Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/chrome_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 1324
1325 static const char* const kCommonSwitchNames[] = { 1325 static const char* const kCommonSwitchNames[] = {
1326 switches::kUserAgent, 1326 switches::kUserAgent,
1327 switches::kUserDataDir, // Make logs go to the right file. 1327 switches::kUserDataDir, // Make logs go to the right file.
1328 }; 1328 };
1329 command_line->CopySwitchesFrom(browser_command_line, kCommonSwitchNames, 1329 command_line->CopySwitchesFrom(browser_command_line, kCommonSwitchNames,
1330 arraysize(kCommonSwitchNames)); 1330 arraysize(kCommonSwitchNames));
1331 1331
1332 #if defined(ENABLE_IPC_FUZZER) 1332 #if defined(ENABLE_IPC_FUZZER)
1333 static const char* const kIpcFuzzerSwitches[] = { 1333 static const char* const kIpcFuzzerSwitches[] = {
1334 switches::kIpcFuzzerTestcase, 1334 switches::kIpcDumpDirectory,
1335 switches::kIpcFuzzerTestcase,
1335 }; 1336 };
1336 command_line->CopySwitchesFrom(browser_command_line, kIpcFuzzerSwitches, 1337 command_line->CopySwitchesFrom(browser_command_line, kIpcFuzzerSwitches,
1337 arraysize(kIpcFuzzerSwitches)); 1338 arraysize(kIpcFuzzerSwitches));
1338 #endif 1339 #endif
1339 1340
1340 #if defined(OS_CHROMEOS) 1341 #if defined(OS_CHROMEOS)
1341 // On Chrome OS need to pass primary user homedir (in multi-profiles session). 1342 // On Chrome OS need to pass primary user homedir (in multi-profiles session).
1342 base::FilePath homedir; 1343 base::FilePath homedir;
1343 PathService::Get(base::DIR_HOME, &homedir); 1344 PathService::Get(base::DIR_HOME, &homedir);
1344 command_line->AppendSwitchASCII(chromeos::switches::kHomedir, 1345 command_line->AppendSwitchASCII(chromeos::switches::kHomedir,
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after
2662 switches::kDisableWebRtcEncryption, 2663 switches::kDisableWebRtcEncryption,
2663 }; 2664 };
2664 to_command_line->CopySwitchesFrom(from_command_line, 2665 to_command_line->CopySwitchesFrom(from_command_line,
2665 kWebRtcDevSwitchNames, 2666 kWebRtcDevSwitchNames,
2666 arraysize(kWebRtcDevSwitchNames)); 2667 arraysize(kWebRtcDevSwitchNames));
2667 } 2668 }
2668 } 2669 }
2669 #endif // defined(ENABLE_WEBRTC) 2670 #endif // defined(ENABLE_WEBRTC)
2670 2671
2671 } // namespace chrome 2672 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698