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 { |
11 | 11 |
12 // ----------------------------------------------------------------------------- | 12 // ----------------------------------------------------------------------------- |
13 // Can't find the switch you are looking for? try looking in | 13 // Can't find the switch you are looking for? Try looking in: |
14 // base/base_switches.cc instead. | 14 // ash/ash_switches.cc |
| 15 // base/base_switches.cc |
| 16 // chromeos/chromeos_switches.cc |
| 17 // etc. |
15 // | 18 // |
16 // When commenting your switch, please use the same voice as surrounding | 19 // When commenting your switch, please use the same voice as surrounding |
17 // comments. Imagine "This switch..." at the beginning of the phrase, and it'll | 20 // comments. Imagine "This switch..." at the beginning of the phrase, and it'll |
18 // all work out. | 21 // all work out. |
19 // ----------------------------------------------------------------------------- | 22 // ----------------------------------------------------------------------------- |
20 | 23 |
21 // Enables or disables the "action box" UI in the toolbar. | 24 // Enables or disables the "action box" UI in the toolbar. |
22 const char kActionBox[] = "action-box"; | 25 const char kActionBox[] = "action-box"; |
23 | 26 |
24 // Allows third-party content included on a page to prompt for a HTTP basic | 27 // Allows third-party content included on a page to prompt for a HTTP basic |
(...skipping 1457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1482 | 1485 |
1483 // Uses the tablet specific UI components when available. | 1486 // Uses the tablet specific UI components when available. |
1484 const char kTabletUI[] = "tablet-ui"; | 1487 const char kTabletUI[] = "tablet-ui"; |
1485 #endif | 1488 #endif |
1486 | 1489 |
1487 #if defined(USE_ASH) | 1490 #if defined(USE_ASH) |
1488 const char kAshDisableTabScrubbing[] = "ash-disable-tab-scrubbing"; | 1491 const char kAshDisableTabScrubbing[] = "ash-disable-tab-scrubbing"; |
1489 const char kOpenAsh[] = "open-ash"; | 1492 const char kOpenAsh[] = "open-ash"; |
1490 #endif | 1493 #endif |
1491 | 1494 |
1492 #if defined(OS_CHROMEOS) | |
1493 // When wallpaper boot animation is not disabled this switch | |
1494 // is used to override OOBE/sign in WebUI init type. | |
1495 // Possible values: parallel|postpone. Default: parallel. | |
1496 const char kAshWebUIInit[] = "ash-webui-init"; | |
1497 | |
1498 // Enables switching between different cellular carriers from the UI. | |
1499 const char kEnableCarrierSwitching[] = "enable-carrier-switching"; | |
1500 | |
1501 // Disables Kiosk app mode for ChromeOS. | |
1502 const char kDisableAppMode[] = "disable-app-mode"; | |
1503 | |
1504 // Disables wallpaper boot animation (except of OOBE case). | |
1505 const char kDisableBootAnimation[] = "disable-boot-animation"; | |
1506 | |
1507 // Disables Chrome Captive Portal detector, which initiates Captive | |
1508 // Portal detection for new active networks. | |
1509 const char kDisableChromeCaptivePortalDetector[] = | |
1510 "disable-chrome-captive-portal-detector"; | |
1511 | |
1512 // Disables Google Drive integration. | |
1513 const char kDisableDrive[] = "disable-drive"; | |
1514 | |
1515 // Disable policy-configured local accounts. | |
1516 const char kDisableLocalAccounts[] = "disable-local-accounts"; | |
1517 | |
1518 // Avoid doing expensive animations upon login. | |
1519 const char kDisableLoginAnimations[] = "disable-login-animations"; | |
1520 | |
1521 // Avoid doing animations upon oobe. | |
1522 const char kDisableOobeAnimation[] = "disable-oobe-animation"; | |
1523 | |
1524 // Enables component extension that initializes background pages of | |
1525 // certain hosted applications. | |
1526 const char kEnableBackgroundLoader[] = "enable-background-loader"; | |
1527 | |
1528 // Enables Chrome Captive Portal detector, which initiates Captive | |
1529 // Portal detection for new active networks. | |
1530 const char kEnableChromeCaptivePortalDetector[] = | |
1531 "enable-chrome-captive-portal-detector"; | |
1532 | |
1533 // Enables touchpad three-finger-click as middle button. | |
1534 const char kEnableTouchpadThreeFingerClick[] | |
1535 = "enable-touchpad-three-finger-click"; | |
1536 | |
1537 // Enables touchpad three-finger swipe. | |
1538 const char kEnableTouchpadThreeFingerSwipe[] | |
1539 = "enable-touchpad-three-finger-swipe"; | |
1540 | |
1541 // Enable Kiosk mode for ChromeOS. | |
1542 const char kEnableKioskMode[] = "enable-kiosk-mode"; | |
1543 | |
1544 // Enables request of tablet site (via user agent override). | |
1545 const char kEnableRequestTabletSite[] = "enable-request-tablet-site"; | |
1546 | |
1547 // Enables static ip configuration. This flag should be removed when it's on by | |
1548 // default. | |
1549 const char kEnableStaticIPConfig[] = "enable-static-ip-config"; | |
1550 | |
1551 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for | |
1552 // Chromeboxes. | |
1553 const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard"; | |
1554 | |
1555 // If true, the Chromebook has a keyboard with a diamond key. | |
1556 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key"; | |
1557 | |
1558 // Path for the screensaver used in Kiosk mode | |
1559 const char kKioskModeScreensaverPath[] = "kiosk-mode-screensaver-path"; | |
1560 | |
1561 // Enables natural scroll by default. | |
1562 const char kNaturalScrollDefault[] = "enable-natural-scroll-default"; | |
1563 | |
1564 // Disables tab discard in low memory conditions, a feature which silently | |
1565 // closes inactive tabs to free memory and to attempt to avoid the kernel's | |
1566 // out-of-memory process killer. | |
1567 const char kNoDiscardTabs[] = "no-discard-tabs"; | |
1568 | |
1569 // Enables overriding the path for the default echo component extension. | |
1570 // Useful for testing. | |
1571 const char kEchoExtensionPath[] = "echo-ext-path"; | |
1572 | |
1573 // Indicates that a stub implementation of CrosSettings that stores settings in | |
1574 // memory without signing should be used, treating current user as the owner. | |
1575 // This option is for testing the chromeos build of chrome on the desktop only. | |
1576 const char kStubCrosSettings[] = "stub-cros-settings"; | |
1577 | |
1578 // Enables overriding the path for the default authentication extension. | |
1579 const char kAuthExtensionPath[] = "auth-ext-path"; | |
1580 | |
1581 // Power of the power-of-2 initial modulus that will be used by the | |
1582 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16. | |
1583 const char kEnterpriseEnrollmentInitialModulus[] = | |
1584 "enterprise-enrollment-initial-modulus"; | |
1585 | |
1586 // Power of the power-of-2 maximum modulus that will be used by the | |
1587 // auto-enrollment client. | |
1588 const char kEnterpriseEnrollmentModulusLimit[] = | |
1589 "enterprise-enrollment-modulus-limit"; | |
1590 | |
1591 // Loads the File Manager as an extension instead of a platform app. | |
1592 // This flag is obsolete. Remove it, once Files.app v2 is stable. | |
1593 const char kFileManagerLegacy[] = "file-manager-legacy"; | |
1594 | |
1595 // Loads the File Manager with the legacy UI. | |
1596 const char kFileManagerLegacyUI[] = "file-manager-legacy-ui"; | |
1597 | |
1598 #ifndef NDEBUG | |
1599 // Skips all other OOBE pages after user login. | |
1600 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin"; | |
1601 #endif // NDEBUG | |
1602 #endif // OS_CHROMEOS | |
1603 | |
1604 #if defined(OS_POSIX) | 1495 #if defined(OS_POSIX) |
1605 // A flag, generated internally by Chrome for renderer and other helper process | 1496 // A flag, generated internally by Chrome for renderer and other helper process |
1606 // command lines on Linux and Mac. It tells the helper process to enable crash | 1497 // command lines on Linux and Mac. It tells the helper process to enable crash |
1607 // dumping and reporting, because helpers cannot access the profile or other | 1498 // dumping and reporting, because helpers cannot access the profile or other |
1608 // files needed to make this decision. | 1499 // files needed to make this decision. |
1609 const char kEnableCrashReporter[] = "enable-crash-reporter"; | 1500 const char kEnableCrashReporter[] = "enable-crash-reporter"; |
1610 | 1501 |
1611 // Used for turning on Breakpad crash reporting in a debug environment where | 1502 // Used for turning on Breakpad crash reporting in a debug environment where |
1612 // crash reporting is typically compiled but disabled. | 1503 // crash reporting is typically compiled but disabled. |
1613 const char kEnableCrashReporterForTesting[] = | 1504 const char kEnableCrashReporterForTesting[] = |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1686 | 1577 |
1687 // ----------------------------------------------------------------------------- | 1578 // ----------------------------------------------------------------------------- |
1688 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1579 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1689 // | 1580 // |
1690 // You were going to just dump your switches here, weren't you? Instead, please | 1581 // You were going to just dump your switches here, weren't you? Instead, please |
1691 // put them in alphabetical order above, or in order inside the appropriate | 1582 // put them in alphabetical order above, or in order inside the appropriate |
1692 // ifdef at the bottom. The order should match the header. | 1583 // ifdef at the bottom. The order should match the header. |
1693 // ----------------------------------------------------------------------------- | 1584 // ----------------------------------------------------------------------------- |
1694 | 1585 |
1695 } // namespace switches | 1586 } // namespace switches |
OLD | NEW |