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 // Enables support for the QUIC protocol for insecure schemes (http://). | 445 // Enables support for the QUIC protocol for insecure schemes (http://). |
446 // This is a temporary testing flag. | 446 // This is a temporary testing flag. |
447 const char kEnableInsecureQuic[] = "enable-insecure-quic"; | 447 const char kEnableInsecureQuic[] = "enable-insecure-quic"; |
448 | 448 |
449 // Enables the Material Design version of chrome://downloads. | 449 // Enables the Material Design version of chrome://downloads. |
450 const char kEnableMaterialDesignDownloads[] = "enable-md-downloads"; | 450 const char kEnableMaterialDesignDownloads[] = "enable-md-downloads"; |
451 | 451 |
452 // Enables the Material Design version of chrome://extensions. | 452 // Enables the Material Design version of chrome://extensions. |
453 const char kEnableMaterialDesignExtensions[] = "enable-md-extensions"; | 453 const char kEnableMaterialDesignExtensions[] = "enable-md-extensions"; |
454 | 454 |
455 // Enables the material design for chrome://policy page feature. | |
bartfab (slow)
2015/09/23 12:57:48
Nit 1: The comments above capitalize Material Desi
fhorschig
2015/09/23 16:18:26
Done.
| |
456 const char kEnableMaterialDesignPolicyPage[] = "enable-md-policy-page"; | |
457 | |
455 // Enables Media Router. | 458 // Enables Media Router. |
456 const char kEnableMediaRouter[] = "enable-media-router"; | 459 const char kEnableMediaRouter[] = "enable-media-router"; |
457 | 460 |
458 // Runs the Native Client inside the renderer process and enables GPU plugin | 461 // Runs the Native Client inside the renderer process and enables GPU plugin |
459 // (internally adds lEnableGpuPlugin to the command line). | 462 // (internally adds lEnableGpuPlugin to the command line). |
460 const char kEnableNaCl[] = "enable-nacl"; | 463 const char kEnableNaCl[] = "enable-nacl"; |
461 | 464 |
462 // Enables tracing for each navigation. It will attempt to trace each navigation | 465 // Enables tracing for each navigation. It will attempt to trace each navigation |
463 // for 10s, until the buffer is full, or until the next navigation. | 466 // for 10s, until the buffer is full, or until the next navigation. |
464 // It only works if a URL was provided by --trace-upload-url. | 467 // It only works if a URL was provided by --trace-upload-url. |
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1334 return SettingsWindowEnabled() && | 1337 return SettingsWindowEnabled() && |
1335 !base::CommandLine::ForCurrentProcess()->HasSwitch( | 1338 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
1336 ::switches::kDisableAboutInSettings); | 1339 ::switches::kDisableAboutInSettings); |
1337 } | 1340 } |
1338 | 1341 |
1339 bool MdExtensionsEnabled() { | 1342 bool MdExtensionsEnabled() { |
1340 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1343 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
1341 ::switches::kEnableMaterialDesignExtensions); | 1344 ::switches::kEnableMaterialDesignExtensions); |
1342 } | 1345 } |
1343 | 1346 |
1347 bool MdPolicyPageEnabled() { | |
1348 return base::CommandLine::ForCurrentProcess()->HasSwitch( | |
1349 ::switches::kEnableMaterialDesignPolicyPage); | |
1350 } | |
1351 | |
1344 bool MediaRouterEnabled() { | 1352 bool MediaRouterEnabled() { |
1345 #if defined(ENABLE_MEDIA_ROUTER) | 1353 #if defined(ENABLE_MEDIA_ROUTER) |
1346 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1354 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
1347 ::switches::kEnableMediaRouter); | 1355 ::switches::kEnableMediaRouter); |
1348 #else | 1356 #else |
1349 return false; | 1357 return false; |
1350 #endif | 1358 #endif |
1351 } | 1359 } |
1352 | 1360 |
1353 bool PdfMaterialUIEnabled() { | 1361 bool PdfMaterialUIEnabled() { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1387 | 1395 |
1388 // ----------------------------------------------------------------------------- | 1396 // ----------------------------------------------------------------------------- |
1389 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1397 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1390 // | 1398 // |
1391 // You were going to just dump your switches here, weren't you? Instead, please | 1399 // You were going to just dump your switches here, weren't you? Instead, please |
1392 // put them in alphabetical order above, or in order inside the appropriate | 1400 // put them in alphabetical order above, or in order inside the appropriate |
1393 // ifdef at the bottom. The order should match the header. | 1401 // ifdef at the bottom. The order should match the header. |
1394 // ----------------------------------------------------------------------------- | 1402 // ----------------------------------------------------------------------------- |
1395 | 1403 |
1396 } // namespace switches | 1404 } // namespace switches |
OLD | NEW |