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/common/chrome_switches.h" | 5 #include "chrome/common/chrome_switches.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "ppapi/features/features.h" | 10 #include "ppapi/features/features.h" |
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1127 // print preview, instead of the most recently used destination. | 1127 // print preview, instead of the most recently used destination. |
1128 const char kUseSystemDefaultPrinter[] = "use-system-default-printer"; | 1128 const char kUseSystemDefaultPrinter[] = "use-system-default-printer"; |
1129 #endif | 1129 #endif |
1130 | 1130 |
1131 #if BUILDFLAG(ENABLE_OOP_HEAP_PROFILING) | 1131 #if BUILDFLAG(ENABLE_OOP_HEAP_PROFILING) |
1132 // Enables the out-of-process memory logging. | 1132 // Enables the out-of-process memory logging. |
1133 const char kMemlog[] = "memlog"; | 1133 const char kMemlog[] = "memlog"; |
1134 | 1134 |
1135 // Communicates the pipe name for out-of-process memory logging. | 1135 // Communicates the pipe name for out-of-process memory logging. |
1136 const char kMemlogPipe[] = "memlog-pipe"; | 1136 const char kMemlogPipe[] = "memlog-pipe"; |
| 1137 |
| 1138 // Value passed to kProcessType switch that indicates the profiling process. |
| 1139 const char kProfiling[] = "profiling"; |
1137 #endif | 1140 #endif |
1138 | 1141 |
1139 bool ExtensionsDisabled(const base::CommandLine& command_line) { | 1142 bool ExtensionsDisabled(const base::CommandLine& command_line) { |
1140 return command_line.HasSwitch(switches::kDisableExtensions) || | 1143 return command_line.HasSwitch(switches::kDisableExtensions) || |
1141 command_line.HasSwitch(switches::kDisableExtensionsExcept); | 1144 command_line.HasSwitch(switches::kDisableExtensionsExcept); |
1142 } | 1145 } |
1143 | 1146 |
1144 bool ExtensionsDisabled() { | 1147 bool ExtensionsDisabled() { |
1145 return ExtensionsDisabled(*base::CommandLine::ForCurrentProcess()); | 1148 return ExtensionsDisabled(*base::CommandLine::ForCurrentProcess()); |
1146 } | 1149 } |
(...skipping 27 matching lines...) Expand all Loading... |
1174 | 1177 |
1175 // ----------------------------------------------------------------------------- | 1178 // ----------------------------------------------------------------------------- |
1176 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. | 1179 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. |
1177 // | 1180 // |
1178 // You were going to just dump your switches here, weren't you? Instead, please | 1181 // You were going to just dump your switches here, weren't you? Instead, please |
1179 // put them in alphabetical order above, or in order inside the appropriate | 1182 // put them in alphabetical order above, or in order inside the appropriate |
1180 // ifdef at the bottom. The order should match the header. | 1183 // ifdef at the bottom. The order should match the header. |
1181 // ----------------------------------------------------------------------------- | 1184 // ----------------------------------------------------------------------------- |
1182 | 1185 |
1183 } // namespace switches | 1186 } // namespace switches |
OLD | NEW |