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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 // Enables support for the QUIC protocol for insecure schemes (http://). | 436 // Enables support for the QUIC protocol for insecure schemes (http://). |
437 // This is a temporary testing flag. | 437 // This is a temporary testing flag. |
438 const char kEnableInsecureQuic[] = "enable-insecure-quic"; | 438 const char kEnableInsecureQuic[] = "enable-insecure-quic"; |
439 | 439 |
440 // Enables the Material Design version of chrome://downloads. | 440 // Enables the Material Design version of chrome://downloads. |
441 const char kEnableMaterialDesignDownloads[] = "enable-md-downloads"; | 441 const char kEnableMaterialDesignDownloads[] = "enable-md-downloads"; |
442 | 442 |
443 // Enables the Material Design version of chrome://extensions. | 443 // Enables the Material Design version of chrome://extensions. |
444 const char kEnableMaterialDesignExtensions[] = "enable-md-extensions"; | 444 const char kEnableMaterialDesignExtensions[] = "enable-md-extensions"; |
445 | 445 |
| 446 // Enables the Material Design policy page at chrome://md-policy. |
| 447 const char kEnableMaterialDesignPolicyPage[] = "enable-md-policy-page"; |
| 448 |
446 // Enables Media Router. | 449 // Enables Media Router. |
447 const char kEnableMediaRouter[] = "enable-media-router"; | 450 const char kEnableMediaRouter[] = "enable-media-router"; |
448 | 451 |
449 // Runs the Native Client inside the renderer process and enables GPU plugin | 452 // Runs the Native Client inside the renderer process and enables GPU plugin |
450 // (internally adds lEnableGpuPlugin to the command line). | 453 // (internally adds lEnableGpuPlugin to the command line). |
451 const char kEnableNaCl[] = "enable-nacl"; | 454 const char kEnableNaCl[] = "enable-nacl"; |
452 | 455 |
453 // Enables tracing for each navigation. It will attempt to trace each navigation | 456 // Enables tracing for each navigation. It will attempt to trace each navigation |
454 // for 10s, until the buffer is full, or until the next navigation. | 457 // for 10s, until the buffer is full, or until the next navigation. |
455 // It only works if a URL was provided by --trace-upload-url. | 458 // It only works if a URL was provided by --trace-upload-url. |
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 return SettingsWindowEnabled() && | 1344 return SettingsWindowEnabled() && |
1342 !base::CommandLine::ForCurrentProcess()->HasSwitch( | 1345 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
1343 ::switches::kDisableAboutInSettings); | 1346 ::switches::kDisableAboutInSettings); |
1344 } | 1347 } |
1345 | 1348 |
1346 bool MdExtensionsEnabled() { | 1349 bool MdExtensionsEnabled() { |
1347 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1350 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
1348 ::switches::kEnableMaterialDesignExtensions); | 1351 ::switches::kEnableMaterialDesignExtensions); |
1349 } | 1352 } |
1350 | 1353 |
| 1354 bool MdPolicyPageEnabled() { |
| 1355 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1356 ::switches::kEnableMaterialDesignPolicyPage); |
| 1357 } |
| 1358 |
1351 bool MediaRouterEnabled() { | 1359 bool MediaRouterEnabled() { |
1352 #if defined(ENABLE_MEDIA_ROUTER) | 1360 #if defined(ENABLE_MEDIA_ROUTER) |
1353 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1361 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
1354 ::switches::kEnableMediaRouter); | 1362 ::switches::kEnableMediaRouter); |
1355 #else | 1363 #else |
1356 return false; | 1364 return false; |
1357 #endif | 1365 #endif |
1358 } | 1366 } |
1359 | 1367 |
1360 bool PdfMaterialUIEnabled() { | 1368 bool PdfMaterialUIEnabled() { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1394 | 1402 |
1395 // ----------------------------------------------------------------------------- | 1403 // ----------------------------------------------------------------------------- |
1396 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1404 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1397 // | 1405 // |
1398 // You were going to just dump your switches here, weren't you? Instead, please | 1406 // You were going to just dump your switches here, weren't you? Instead, please |
1399 // put them in alphabetical order above, or in order inside the appropriate | 1407 // put them in alphabetical order above, or in order inside the appropriate |
1400 // ifdef at the bottom. The order should match the header. | 1408 // ifdef at the bottom. The order should match the header. |
1401 // ----------------------------------------------------------------------------- | 1409 // ----------------------------------------------------------------------------- |
1402 | 1410 |
1403 } // namespace switches | 1411 } // namespace switches |
OLD | NEW |