| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 // Comma-separated list of feature names to enable. See also kDisableFeatures. | 445 // Comma-separated list of feature names to enable. See also kDisableFeatures. |
| 446 const char kEnableFeatures[] = "enable-features"; | 446 const char kEnableFeatures[] = "enable-features"; |
| 447 | 447 |
| 448 // Enables support for the QUIC protocol for insecure schemes (http://). | 448 // Enables support for the QUIC protocol for insecure schemes (http://). |
| 449 // This is a temporary testing flag. | 449 // This is a temporary testing flag. |
| 450 const char kEnableInsecureQuic[] = "enable-insecure-quic"; | 450 const char kEnableInsecureQuic[] = "enable-insecure-quic"; |
| 451 | 451 |
| 452 // Enables the Material Design version of chrome://downloads. | 452 // Enables the Material Design version of chrome://downloads. |
| 453 const char kEnableMaterialDesignDownloads[] = "enable-md-downloads"; | 453 const char kEnableMaterialDesignDownloads[] = "enable-md-downloads"; |
| 454 | 454 |
| 455 // Enables the Material Design version of chrome://extensions. |
| 456 const char kEnableMaterialDesignExtensions[] = "enable-md-extensions"; |
| 457 |
| 455 // Enables the material design Settings feature. | 458 // Enables the material design Settings feature. |
| 456 const char kEnableMaterialDesignSettings[] = "enable-md-settings"; | 459 const char kEnableMaterialDesignSettings[] = "enable-md-settings"; |
| 457 | 460 |
| 458 // Enables Media Router. | 461 // Enables Media Router. |
| 459 const char kEnableMediaRouter[] = "enable-media-router"; | 462 const char kEnableMediaRouter[] = "enable-media-router"; |
| 460 | 463 |
| 461 // Runs the Native Client inside the renderer process and enables GPU plugin | 464 // Runs the Native Client inside the renderer process and enables GPU plugin |
| 462 // (internally adds lEnableGpuPlugin to the command line). | 465 // (internally adds lEnableGpuPlugin to the command line). |
| 463 const char kEnableNaCl[] = "enable-nacl"; | 466 const char kEnableNaCl[] = "enable-nacl"; |
| 464 | 467 |
| (...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 // Disables the new implementation of the task manager. | 1319 // Disables the new implementation of the task manager. |
| 1317 const char kDisableNewTaskManager[] = "disable-new-task-manager"; | 1320 const char kDisableNewTaskManager[] = "disable-new-task-manager"; |
| 1318 #endif // defined(ENABLE_TASK_MANAGER) | 1321 #endif // defined(ENABLE_TASK_MANAGER) |
| 1319 | 1322 |
| 1320 bool AboutInSettingsEnabled() { | 1323 bool AboutInSettingsEnabled() { |
| 1321 return SettingsWindowEnabled() && | 1324 return SettingsWindowEnabled() && |
| 1322 !base::CommandLine::ForCurrentProcess()->HasSwitch( | 1325 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1323 ::switches::kDisableAboutInSettings); | 1326 ::switches::kDisableAboutInSettings); |
| 1324 } | 1327 } |
| 1325 | 1328 |
| 1329 bool MdExtensionsEnabled() { |
| 1330 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1331 ::switches::kEnableMaterialDesignExtensions); |
| 1332 } |
| 1333 |
| 1326 bool MdSettingsEnabled() { | 1334 bool MdSettingsEnabled() { |
| 1327 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1335 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1328 ::switches::kEnableMaterialDesignSettings); | 1336 ::switches::kEnableMaterialDesignSettings); |
| 1329 } | 1337 } |
| 1330 | 1338 |
| 1331 bool MediaRouterEnabled() { | 1339 bool MediaRouterEnabled() { |
| 1332 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1340 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1333 ::switches::kEnableMediaRouter); | 1341 ::switches::kEnableMediaRouter); |
| 1334 } | 1342 } |
| 1335 | 1343 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1370 | 1378 |
| 1371 // ----------------------------------------------------------------------------- | 1379 // ----------------------------------------------------------------------------- |
| 1372 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1380 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1373 // | 1381 // |
| 1374 // You were going to just dump your switches here, weren't you? Instead, please | 1382 // You were going to just dump your switches here, weren't you? Instead, please |
| 1375 // put them in alphabetical order above, or in order inside the appropriate | 1383 // put them in alphabetical order above, or in order inside the appropriate |
| 1376 // ifdef at the bottom. The order should match the header. | 1384 // ifdef at the bottom. The order should match the header. |
| 1377 // ----------------------------------------------------------------------------- | 1385 // ----------------------------------------------------------------------------- |
| 1378 | 1386 |
| 1379 } // namespace switches | 1387 } // namespace switches |
| OLD | NEW |