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 | 9 |
10 namespace switches { | 10 namespace switches { |
(...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1321 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) | 1321 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) |
1322 // Enables support to debug printing subsystem. | 1322 // Enables support to debug printing subsystem. |
1323 const char kDebugPrint[] = "debug-print"; | 1323 const char kDebugPrint[] = "debug-print"; |
1324 #endif | 1324 #endif |
1325 | 1325 |
1326 #if defined(ENABLE_TASK_MANAGER) | 1326 #if defined(ENABLE_TASK_MANAGER) |
1327 // Disables the new implementation of the task manager. | 1327 // Disables the new implementation of the task manager. |
1328 const char kDisableNewTaskManager[] = "disable-new-task-manager"; | 1328 const char kDisableNewTaskManager[] = "disable-new-task-manager"; |
1329 #endif // defined(ENABLE_TASK_MANAGER) | 1329 #endif // defined(ENABLE_TASK_MANAGER) |
1330 | 1330 |
| 1331 // Enables support for the Brotli Content-encoding. |
| 1332 const char kEnableBrotli[] = "enable-brotli"; |
| 1333 |
| 1334 // Disables support for the Brotli Content-encoding. |
| 1335 const char kDisableBrotli[] = "disable-brotli"; |
| 1336 |
1331 bool AboutInSettingsEnabled() { | 1337 bool AboutInSettingsEnabled() { |
1332 return SettingsWindowEnabled() && | 1338 return SettingsWindowEnabled() && |
1333 !base::CommandLine::ForCurrentProcess()->HasSwitch( | 1339 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
1334 ::switches::kDisableAboutInSettings); | 1340 ::switches::kDisableAboutInSettings); |
1335 } | 1341 } |
1336 | 1342 |
1337 bool MdExtensionsEnabled() { | 1343 bool MdExtensionsEnabled() { |
1338 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1344 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
1339 ::switches::kEnableMaterialDesignExtensions); | 1345 ::switches::kEnableMaterialDesignExtensions); |
1340 } | 1346 } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1381 | 1387 |
1382 // ----------------------------------------------------------------------------- | 1388 // ----------------------------------------------------------------------------- |
1383 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1389 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1384 // | 1390 // |
1385 // You were going to just dump your switches here, weren't you? Instead, please | 1391 // You were going to just dump your switches here, weren't you? Instead, please |
1386 // put them in alphabetical order above, or in order inside the appropriate | 1392 // put them in alphabetical order above, or in order inside the appropriate |
1387 // ifdef at the bottom. The order should match the header. | 1393 // ifdef at the bottom. The order should match the header. |
1388 // ----------------------------------------------------------------------------- | 1394 // ----------------------------------------------------------------------------- |
1389 | 1395 |
1390 } // namespace switches | 1396 } // namespace switches |
OLD | NEW |