| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |