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 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1540 | 1540 |
1541 // Enables static ip configuration. This flag should be removed when it's on by | 1541 // Enables static ip configuration. This flag should be removed when it's on by |
1542 // default. | 1542 // default. |
1543 const char kEnableStaticIPConfig[] = "enable-static-ip-config"; | 1543 const char kEnableStaticIPConfig[] = "enable-static-ip-config"; |
1544 | 1544 |
1545 // Enables setting TRUST_SSL for server and CA certificates imported from user | 1545 // Enables setting TRUST_SSL for server and CA certificates imported from user |
1546 // ONC policy. This flag will be removed once the feature can be turned on by | 1546 // ONC policy. This flag will be removed once the feature can be turned on by |
1547 // default, which needs additional UI work. | 1547 // default, which needs additional UI work. |
1548 const char kEnableWebTrustCerts[] = "enable-web-trust-certs"; | 1548 const char kEnableWebTrustCerts[] = "enable-web-trust-certs"; |
1549 | 1549 |
| 1550 // Passed to Chrome on first boot. Not passed on restart after sign out. |
| 1551 const char kFirstBoot[] = "first-boot"; |
| 1552 |
| 1553 // Usually in browser tests the usual login manager bringup is skipped so that |
| 1554 // tests can change how it's brought up. This flag disables that. |
| 1555 const char kForceLoginManagerInTests[] = "force-login-manager-in-tests"; |
| 1556 |
1550 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for | 1557 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for |
1551 // Chromeboxes. | 1558 // Chromeboxes. |
1552 const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard"; | 1559 const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard"; |
1553 | 1560 |
1554 // If true, the Chromebook has a keyboard with a diamond key. | 1561 // If true, the Chromebook has a keyboard with a diamond key. |
1555 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key"; | 1562 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key"; |
1556 | 1563 |
1557 // Path for the screensaver used in Kiosk mode | 1564 // Path for the screensaver used in Kiosk mode |
1558 const char kKioskModeScreensaverPath[] = "kiosk-mode-screensaver-path"; | 1565 const char kKioskModeScreensaverPath[] = "kiosk-mode-screensaver-path"; |
1559 | 1566 |
| 1567 // Enables Chrome-as-a-login-manager behavior. |
| 1568 const char kLoginManager[] = "login-manager"; |
| 1569 |
| 1570 // Allows to override the first login screen. The value should be the name of |
| 1571 // the first login screen to show (see |
| 1572 // chrome/browser/chromeos/login/login_wizard_view.cc for actual names). |
| 1573 // Ignored if kLoginManager is not specified. TODO(avayvod): Remove when the |
| 1574 // switch is no longer needed for testing. |
| 1575 const char kLoginScreen[] = "login-screen"; |
| 1576 |
| 1577 // Controls the initial login screen size. Pass width,height. |
| 1578 const char kLoginScreenSize[] = "login-screen-size"; |
| 1579 |
| 1580 // Specifies the profile to use once a chromeos user is logged in. |
| 1581 const char kLoginProfile[] = "login-profile"; |
| 1582 |
| 1583 // Specifies the user which is already logged in. |
| 1584 const char kLoginUser[] = "login-user"; |
| 1585 |
| 1586 // Specifies a password to be used to login (along with login-user). |
| 1587 const char kLoginPassword[] = "login-password"; |
| 1588 |
1560 // Enables natural scroll by default. | 1589 // Enables natural scroll by default. |
1561 const char kNaturalScrollDefault[] = "enable-natural-scroll-default"; | 1590 const char kNaturalScrollDefault[] = "enable-natural-scroll-default"; |
1562 | 1591 |
1563 // Disables tab discard in low memory conditions, a feature which silently | 1592 // Disables tab discard in low memory conditions, a feature which silently |
1564 // closes inactive tabs to free memory and to attempt to avoid the kernel's | 1593 // closes inactive tabs to free memory and to attempt to avoid the kernel's |
1565 // out-of-memory process killer. | 1594 // out-of-memory process killer. |
1566 const char kNoDiscardTabs[] = "no-discard-tabs"; | 1595 const char kNoDiscardTabs[] = "no-discard-tabs"; |
1567 | 1596 |
| 1597 // Indicates that the browser is in "browse without sign-in" (Guest session) |
| 1598 // mode. Should completely disable extensions, sync and bookmarks. |
| 1599 const char kGuestSession[] = "bwsi"; |
| 1600 |
1568 // Enables overriding the path for the default echo component extension. | 1601 // Enables overriding the path for the default echo component extension. |
1569 // Useful for testing. | 1602 // Useful for testing. |
1570 const char kEchoExtensionPath[] = "echo-ext-path"; | 1603 const char kEchoExtensionPath[] = "echo-ext-path"; |
1571 | 1604 |
1572 // Indicates that a stub implementation of CrosSettings that stores settings in | 1605 // Indicates that a stub implementation of CrosSettings that stores settings in |
1573 // memory without signing should be used, treating current user as the owner. | 1606 // memory without signing should be used, treating current user as the owner. |
1574 // This option is for testing the chromeos build of chrome on the desktop only. | 1607 // This option is for testing the chromeos build of chrome on the desktop only. |
1575 const char kStubCrosSettings[] = "stub-cros-settings"; | 1608 const char kStubCrosSettings[] = "stub-cros-settings"; |
1576 | 1609 |
1577 // Enables overriding the path for the default authentication extension. | 1610 // Enables overriding the path for the default authentication extension. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1678 | 1711 |
1679 // ----------------------------------------------------------------------------- | 1712 // ----------------------------------------------------------------------------- |
1680 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1713 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1681 // | 1714 // |
1682 // You were going to just dump your switches here, weren't you? Instead, please | 1715 // You were going to just dump your switches here, weren't you? Instead, please |
1683 // put them in alphabetical order above, or in order inside the appropriate | 1716 // put them in alphabetical order above, or in order inside the appropriate |
1684 // ifdef at the bottom. The order should match the header. | 1717 // ifdef at the bottom. The order should match the header. |
1685 // ----------------------------------------------------------------------------- | 1718 // ----------------------------------------------------------------------------- |
1686 | 1719 |
1687 } // namespace switches | 1720 } // namespace switches |
OLD | NEW |