| 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 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1708 switches::kMessageLoopHistogrammer, | 1708 switches::kMessageLoopHistogrammer, |
| 1709 switches::kOutOfProcessPdf, | 1709 switches::kOutOfProcessPdf, |
| 1710 switches::kPlaybackMode, | 1710 switches::kPlaybackMode, |
| 1711 switches::kPpapiFlashArgs, | 1711 switches::kPpapiFlashArgs, |
| 1712 switches::kPpapiFlashPath, | 1712 switches::kPpapiFlashPath, |
| 1713 switches::kPpapiFlashVersion, | 1713 switches::kPpapiFlashVersion, |
| 1714 switches::kProfilingAtStart, | 1714 switches::kProfilingAtStart, |
| 1715 switches::kProfilingFile, | 1715 switches::kProfilingFile, |
| 1716 switches::kProfilingFlush, | 1716 switches::kProfilingFlush, |
| 1717 switches::kRecordMode, | 1717 switches::kRecordMode, |
| 1718 switches::kSilentDumpOnDCHECK, | |
| 1719 translate::switches::kTranslateSecurityOrigin, | 1718 translate::switches::kTranslateSecurityOrigin, |
| 1720 }; | 1719 }; |
| 1721 | 1720 |
| 1722 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 1721 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
| 1723 arraysize(kSwitchNames)); | 1722 arraysize(kSwitchNames)); |
| 1724 } else if (process_type == switches::kUtilityProcess) { | 1723 } else if (process_type == switches::kUtilityProcess) { |
| 1725 static const char* const kSwitchNames[] = { | 1724 static const char* const kSwitchNames[] = { |
| 1726 extensions::switches::kAllowHTTPBackgroundPage, | 1725 extensions::switches::kAllowHTTPBackgroundPage, |
| 1727 extensions::switches::kEnableExperimentalExtensionApis, | 1726 extensions::switches::kEnableExperimentalExtensionApis, |
| 1728 extensions::switches::kExtensionsOnChromeURLs, | 1727 extensions::switches::kExtensionsOnChromeURLs, |
| 1729 extensions::switches::kWhitelistedExtensionID, | 1728 extensions::switches::kWhitelistedExtensionID, |
| 1730 }; | 1729 }; |
| 1731 | 1730 |
| 1732 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 1731 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
| 1733 arraysize(kSwitchNames)); | 1732 arraysize(kSwitchNames)); |
| 1734 } else if (process_type == switches::kPluginProcess) { | 1733 } else if (process_type == switches::kPluginProcess) { |
| 1735 static const char* const kSwitchNames[] = { | 1734 static const char* const kSwitchNames[] = { |
| 1736 #if defined(OS_CHROMEOS) | 1735 #if defined(OS_CHROMEOS) |
| 1737 chromeos::switches::kLoginProfile, | 1736 chromeos::switches::kLoginProfile, |
| 1738 #endif | 1737 #endif |
| 1739 switches::kMemoryProfiling, | 1738 switches::kMemoryProfiling, |
| 1740 switches::kSilentDumpOnDCHECK, | |
| 1741 }; | 1739 }; |
| 1742 | 1740 |
| 1743 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 1741 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
| 1744 arraysize(kSwitchNames)); | 1742 arraysize(kSwitchNames)); |
| 1745 } else if (process_type == switches::kZygoteProcess) { | 1743 } else if (process_type == switches::kZygoteProcess) { |
| 1746 static const char* const kSwitchNames[] = { | 1744 static const char* const kSwitchNames[] = { |
| 1747 // Load (in-process) Pepper plugins in-process in the zygote pre-sandbox. | 1745 // Load (in-process) Pepper plugins in-process in the zygote pre-sandbox. |
| 1748 switches::kDisableBundledPpapiFlash, | 1746 switches::kDisableBundledPpapiFlash, |
| 1749 switches::kEnableNaClNonSfiMode, | 1747 switches::kEnableNaClNonSfiMode, |
| 1750 switches::kNaClDangerousNoSandboxNonSfi, | 1748 switches::kNaClDangerousNoSandboxNonSfi, |
| (...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2851 switches::kDisableWebRtcEncryption, | 2849 switches::kDisableWebRtcEncryption, |
| 2852 }; | 2850 }; |
| 2853 to_command_line->CopySwitchesFrom(from_command_line, | 2851 to_command_line->CopySwitchesFrom(from_command_line, |
| 2854 kWebRtcDevSwitchNames, | 2852 kWebRtcDevSwitchNames, |
| 2855 arraysize(kWebRtcDevSwitchNames)); | 2853 arraysize(kWebRtcDevSwitchNames)); |
| 2856 } | 2854 } |
| 2857 } | 2855 } |
| 2858 #endif // defined(ENABLE_WEBRTC) | 2856 #endif // defined(ENABLE_WEBRTC) |
| 2859 | 2857 |
| 2860 } // namespace chrome | 2858 } // namespace chrome |
| OLD | NEW |