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 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 // print preview, instead of the most recently used destination. | 1094 // print preview, instead of the most recently used destination. |
1095 const char kUseSystemDefaultPrinter[] = "use-system-default-printer"; | 1095 const char kUseSystemDefaultPrinter[] = "use-system-default-printer"; |
1096 #endif | 1096 #endif |
1097 | 1097 |
1098 #if BUILDFLAG(ENABLE_OOP_HEAP_PROFILING) | 1098 #if BUILDFLAG(ENABLE_OOP_HEAP_PROFILING) |
1099 // Enables the out-of-process memory logging. | 1099 // Enables the out-of-process memory logging. |
1100 const char kMemlog[] = "memlog"; | 1100 const char kMemlog[] = "memlog"; |
1101 | 1101 |
1102 // Communicates the pipe name for out-of-process memory logging. | 1102 // Communicates the pipe name for out-of-process memory logging. |
1103 const char kMemlogPipe[] = "memlog-pipe"; | 1103 const char kMemlogPipe[] = "memlog-pipe"; |
| 1104 |
| 1105 // Value passed to kProcessType switch that indicates the profiling process. |
| 1106 const char kProfiling[] = "profiling"; |
1104 #endif | 1107 #endif |
1105 | 1108 |
1106 bool ExtensionsDisabled(const base::CommandLine& command_line) { | 1109 bool ExtensionsDisabled(const base::CommandLine& command_line) { |
1107 return command_line.HasSwitch(switches::kDisableExtensions) || | 1110 return command_line.HasSwitch(switches::kDisableExtensions) || |
1108 command_line.HasSwitch(switches::kDisableExtensionsExcept); | 1111 command_line.HasSwitch(switches::kDisableExtensionsExcept); |
1109 } | 1112 } |
1110 | 1113 |
1111 bool ExtensionsDisabled() { | 1114 bool ExtensionsDisabled() { |
1112 return ExtensionsDisabled(*base::CommandLine::ForCurrentProcess()); | 1115 return ExtensionsDisabled(*base::CommandLine::ForCurrentProcess()); |
1113 } | 1116 } |
(...skipping 27 matching lines...) Expand all Loading... |
1141 | 1144 |
1142 // ----------------------------------------------------------------------------- | 1145 // ----------------------------------------------------------------------------- |
1143 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. | 1146 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. |
1144 // | 1147 // |
1145 // You were going to just dump your switches here, weren't you? Instead, please | 1148 // You were going to just dump your switches here, weren't you? Instead, please |
1146 // put them in alphabetical order above, or in order inside the appropriate | 1149 // put them in alphabetical order above, or in order inside the appropriate |
1147 // ifdef at the bottom. The order should match the header. | 1150 // ifdef at the bottom. The order should match the header. |
1148 // ----------------------------------------------------------------------------- | 1151 // ----------------------------------------------------------------------------- |
1149 | 1152 |
1150 } // namespace switches | 1153 } // namespace switches |
OLD | NEW |