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