Chromium Code Reviews| 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 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 915 switches::kPlaybackMode, | 915 switches::kPlaybackMode, |
| 916 switches::kPpapiFlashArgs, | 916 switches::kPpapiFlashArgs, |
| 917 switches::kPpapiFlashInProcess, | 917 switches::kPpapiFlashInProcess, |
| 918 switches::kPpapiFlashPath, | 918 switches::kPpapiFlashPath, |
| 919 switches::kPpapiFlashVersion, | 919 switches::kPpapiFlashVersion, |
| 920 switches::kProfilingAtStart, | 920 switches::kProfilingAtStart, |
| 921 switches::kProfilingFile, | 921 switches::kProfilingFile, |
| 922 switches::kProfilingFlush, | 922 switches::kProfilingFlush, |
| 923 switches::kRecordMode, | 923 switches::kRecordMode, |
| 924 switches::kSilentDumpOnDCHECK, | 924 switches::kSilentDumpOnDCHECK, |
| 925 switches::kSpdyProxyOrigin, | |
| 925 switches::kWhitelistedExtensionID, | 926 switches::kWhitelistedExtensionID, |
| 926 }; | 927 }; |
| 927 | 928 |
| 928 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 929 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
| 929 arraysize(kSwitchNames)); | 930 arraysize(kSwitchNames)); |
| 930 } else if (process_type == switches::kUtilityProcess) { | 931 } else if (process_type == switches::kUtilityProcess) { |
| 931 static const char* const kSwitchNames[] = { | 932 static const char* const kSwitchNames[] = { |
| 932 switches::kAllowHTTPBackgroundPage, | 933 switches::kAllowHTTPBackgroundPage, |
| 933 switches::kEnableExperimentalExtensionApis, | 934 switches::kEnableExperimentalExtensionApis, |
| 935 switches::kSpdyProxyOrigin, | |
|
Lei Zhang
2012/10/02 00:25:14
Do utility processes really need this switch?
bengr (incorrect)
2012/10/02 18:19:01
I don't believe so. Removed.
On 2012/10/02 00:25:
| |
| 934 switches::kWhitelistedExtensionID, | 936 switches::kWhitelistedExtensionID, |
| 935 }; | 937 }; |
| 936 | 938 |
| 937 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 939 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
| 938 arraysize(kSwitchNames)); | 940 arraysize(kSwitchNames)); |
| 939 } else if (process_type == switches::kPluginProcess) { | 941 } else if (process_type == switches::kPluginProcess) { |
| 940 static const char* const kSwitchNames[] = { | 942 static const char* const kSwitchNames[] = { |
| 941 #if defined(OS_CHROMEOS) | 943 #if defined(OS_CHROMEOS) |
| 942 switches::kLoginProfile, | 944 switches::kLoginProfile, |
| 943 #endif | 945 #endif |
| (...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1798 partition_id = extension->id(); | 1800 partition_id = extension->id(); |
| 1799 } | 1801 } |
| 1800 | 1802 |
| 1801 // Enforce that IsValidStoragePartitionId() implementation stays in sync. | 1803 // Enforce that IsValidStoragePartitionId() implementation stays in sync. |
| 1802 DCHECK(IsValidStoragePartitionId(browser_context, partition_id)); | 1804 DCHECK(IsValidStoragePartitionId(browser_context, partition_id)); |
| 1803 return partition_id; | 1805 return partition_id; |
| 1804 } | 1806 } |
| 1805 | 1807 |
| 1806 | 1808 |
| 1807 } // namespace chrome | 1809 } // namespace chrome |
| OLD | NEW |