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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 const char kEnableOriginChipAlways[] = "enable-origin-chip-always"; | 507 const char kEnableOriginChipAlways[] = "enable-origin-chip-always"; |
508 const char kEnableOriginChipOnSrp[] = "enable-origin-chip-on-srp"; | 508 const char kEnableOriginChipOnSrp[] = "enable-origin-chip-on-srp"; |
509 | 509 |
510 // Enables panels (always on-top docked pop-up windows). | 510 // Enables panels (always on-top docked pop-up windows). |
511 const char kEnablePanels[] = "enable-panels"; | 511 const char kEnablePanels[] = "enable-panels"; |
512 | 512 |
513 // Enables presenting plugin placeholder content as shadow DOM. | 513 // Enables presenting plugin placeholder content as shadow DOM. |
514 const char kEnablePluginPlaceholderShadowDom[] = | 514 const char kEnablePluginPlaceholderShadowDom[] = |
515 "enable-plugin-placeholder-shadow-dom"; | 515 "enable-plugin-placeholder-shadow-dom"; |
516 | 516 |
| 517 // Enables the Power overlay in Settings. |
| 518 const char kEnablePowerOverlay[] = "enable-power-overlay"; |
| 519 |
517 // Enables showing unregistered printers in print preview | 520 // Enables showing unregistered printers in print preview |
518 const char kEnablePrintPreviewRegisterPromos[] = | 521 const char kEnablePrintPreviewRegisterPromos[] = |
519 "enable-print-preview-register-promos"; | 522 "enable-print-preview-register-promos"; |
520 | 523 |
521 // Enable Privet storage. | 524 // Enable Privet storage. |
522 const char kEnablePrivetStorage[] = "enable-privet-storage"; | 525 const char kEnablePrivetStorage[] = "enable-privet-storage"; |
523 | 526 |
524 // Enables tracking of tasks in profiler for viewing via about:profiler. | 527 // Enables tracking of tasks in profiler for viewing via about:profiler. |
525 // To predominantly disable tracking (profiling), use the command line switch: | 528 // To predominantly disable tracking (profiling), use the command line switch: |
526 // --enable-profiling=0 | 529 // --enable-profiling=0 |
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1352 bool SettingsWindowEnabled() { | 1355 bool SettingsWindowEnabled() { |
1353 #if defined(OS_CHROMEOS) | 1356 #if defined(OS_CHROMEOS) |
1354 return !CommandLine::ForCurrentProcess()->HasSwitch( | 1357 return !CommandLine::ForCurrentProcess()->HasSwitch( |
1355 ::switches::kDisableSettingsWindow); | 1358 ::switches::kDisableSettingsWindow); |
1356 #else | 1359 #else |
1357 return CommandLine::ForCurrentProcess()->HasSwitch( | 1360 return CommandLine::ForCurrentProcess()->HasSwitch( |
1358 ::switches::kEnableSettingsWindow); | 1361 ::switches::kEnableSettingsWindow); |
1359 #endif | 1362 #endif |
1360 } | 1363 } |
1361 | 1364 |
| 1365 #if defined(OS_CHROMEOS) |
| 1366 bool PowerOverlayEnabled() { |
| 1367 return CommandLine::ForCurrentProcess()->HasSwitch( |
| 1368 ::switches::kEnablePowerOverlay); |
| 1369 } |
| 1370 #endif |
| 1371 |
1362 // ----------------------------------------------------------------------------- | 1372 // ----------------------------------------------------------------------------- |
1363 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1373 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1364 // | 1374 // |
1365 // You were going to just dump your switches here, weren't you? Instead, please | 1375 // You were going to just dump your switches here, weren't you? Instead, please |
1366 // put them in alphabetical order above, or in order inside the appropriate | 1376 // put them in alphabetical order above, or in order inside the appropriate |
1367 // ifdef at the bottom. The order should match the header. | 1377 // ifdef at the bottom. The order should match the header. |
1368 // ----------------------------------------------------------------------------- | 1378 // ----------------------------------------------------------------------------- |
1369 | 1379 |
1370 } // namespace switches | 1380 } // namespace switches |
OLD | NEW |