OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 9 |
10 namespace switches { | 10 namespace switches { |
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1206 const char kExposePrivateExtensionApi[] = "expose-private-extension-api"; | 1206 const char kExposePrivateExtensionApi[] = "expose-private-extension-api"; |
1207 #endif | 1207 #endif |
1208 | 1208 |
1209 // Disable print preview (Not exposed via about:flags. Only used for testing.) | 1209 // Disable print preview (Not exposed via about:flags. Only used for testing.) |
1210 const char kDisablePrintPreview[] = "disable-print-preview"; | 1210 const char kDisablePrintPreview[] = "disable-print-preview"; |
1211 | 1211 |
1212 // Enable print preview (no PDF viewer, thus not supported with Chromium). | 1212 // Enable print preview (no PDF viewer, thus not supported with Chromium). |
1213 // kDisablePrintPreview overrides this. | 1213 // kDisablePrintPreview overrides this. |
1214 const char kEnablePrintPreview[] = "enable-print-preview"; | 1214 const char kEnablePrintPreview[] = "enable-print-preview"; |
1215 | 1215 |
| 1216 // Enables the benchmarking extensions. |
| 1217 const char kEnableBenchmarking[] = "enable-benchmarking"; |
| 1218 |
1216 bool IsPrintPreviewEnabled() { | 1219 bool IsPrintPreviewEnabled() { |
1217 if (CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview)) | 1220 if (CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview)) |
1218 return false; | 1221 return false; |
1219 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview); | 1222 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview); |
1220 } | 1223 } |
1221 | 1224 |
1222 bool IsInBrowserThumbnailingEnabled() { | 1225 bool IsInBrowserThumbnailingEnabled() { |
1223 return CommandLine::ForCurrentProcess()->HasSwitch( | 1226 return CommandLine::ForCurrentProcess()->HasSwitch( |
1224 kEnableInBrowserThumbnailing); | 1227 kEnableInBrowserThumbnailing); |
1225 } | 1228 } |
1226 | 1229 |
1227 // ----------------------------------------------------------------------------- | 1230 // ----------------------------------------------------------------------------- |
1228 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1231 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1229 // | 1232 // |
1230 // You were going to just dump your switches here, weren't you? Instead, | 1233 // You were going to just dump your switches here, weren't you? Instead, |
1231 // please put them in alphabetical order above, or in order inside the | 1234 // please put them in alphabetical order above, or in order inside the |
1232 // appropriate ifdef at the bottom. The order should match the header. | 1235 // appropriate ifdef at the bottom. The order should match the header. |
1233 // ----------------------------------------------------------------------------- | 1236 // ----------------------------------------------------------------------------- |
1234 | 1237 |
1235 } // namespace switches | 1238 } // namespace switches |
OLD | NEW |