Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/signin/core/common/signin_switches.h" | 5 #include "components/signin/core/common/signin_switches.h" |
| 6 | 6 |
| 7 namespace switches { | 7 namespace switches { |
| 8 | 8 |
| 9 // Clears the token service before using it. This allows simulating the | 9 // Clears the token service before using it. This allows simulating the |
| 10 // expiration of credentials during testing. | 10 // expiration of credentials during testing. |
| 11 const char kClearTokenService[] = "clear-token-service"; | 11 const char kClearTokenService[] = "clear-token-service"; |
| 12 | 12 |
| 13 // Disables consistent identity features. | 13 // Disables consistent identity features. |
| 14 const char kDisableAccountConsistency[] = "disable-account-consistency"; | 14 const char kDisableAccountConsistency[] = "disable-account-consistency"; |
| 15 | 15 |
| 16 // Disables new profile management system, including new profile chooser UI. | 16 // Disables new profile management system, including new profile chooser UI. |
| 17 const char kDisableNewProfileManagement[] = "disable-new-profile-management"; | 17 const char kDisableNewProfileManagement[] = "disable-new-profile-management"; |
| 18 | 18 |
| 19 // Disables the new avatar menu, forcing the top-corner avatar button. | |
| 20 const char kDisableNewAvatarMenu[] = "disable-new-avatar-menu"; | |
| 21 | |
| 19 // Enables consistent identity features. | 22 // Enables consistent identity features. |
| 20 const char kEnableAccountConsistency[] = "enable-account-consistency"; | 23 const char kEnableAccountConsistency[] = "enable-account-consistency"; |
| 21 | 24 |
| 22 // Enables new profile management system, including new profile chooser UI. | 25 // Enables new profile management system, including lock mode. |
| 23 const char kEnableNewProfileManagement[] = "new-profile-management"; | 26 const char kEnableNewProfileManagement[] = "new-profile-management"; |
| 24 | 27 |
| 28 // Enable the new profile chooser UI and User Manager. | |
|
msw
2014/08/01 16:45:15
nit: Consider "new avatar menu" for consistency wi
Mike Lerman
2014/08/01 19:15:00
Done.
| |
| 29 const char kEnableNewAvatarMenu[] = "enable-new-avatar-menu"; | |
| 30 | |
| 25 // Enable sending signin scopde device id to LSO with refresh token request. | 31 // Enable sending signin scopde device id to LSO with refresh token request. |
| 26 const char kEnableSigninScopedDeviceId[] = "enable-signin-scoped-device-id"; | 32 const char kEnableSigninScopedDeviceId[] = "enable-signin-scoped-device-id"; |
| 27 | 33 |
| 28 // Enables the pure web-based flow for sign in on first run/NTP/wrench menu/ | 34 // Enables the pure web-based flow for sign in on first run/NTP/wrench menu/ |
| 29 // settings page. | 35 // settings page. |
| 30 const char kEnableWebBasedSignin[] = "enable-web-based-signin"; | 36 const char kEnableWebBasedSignin[] = "enable-web-based-signin"; |
| 31 | 37 |
| 32 // Enables multiple account versions of chrome.identity APIs. | 38 // Enables multiple account versions of chrome.identity APIs. |
| 33 const char kExtensionsMultiAccount[] = "extensions-multi-account"; | 39 const char kExtensionsMultiAccount[] = "extensions-multi-account"; |
| 34 | 40 |
| 35 // Allows displaying the list of existing profiles in the avatar bubble for | 41 // Allows displaying the list of existing profiles in the avatar bubble for |
| 36 // fast switching between profiles. | 42 // fast switching between profiles. |
| 37 const char kFastUserSwitching[] = "fast-user-switching"; | 43 const char kFastUserSwitching[] = "fast-user-switching"; |
| 38 | 44 |
| 39 // Enables using GAIA information to populate profile name and icon. | 45 // Enables using GAIA information to populate profile name and icon. |
| 40 const char kGoogleProfileInfo[] = "google-profile-info"; | 46 const char kGoogleProfileInfo[] = "google-profile-info"; |
| 41 | 47 |
| 42 // Use new avatar menu. When combined with new-profile-management, it simply | |
| 43 // shows the new profile management avatar menu. Otherwise it shows a redesigned | |
| 44 // avatar menu with the same functionality as the old one, plus a tutorial card | |
| 45 // at the top prompting the user to try out the new profile management UI. | |
| 46 const char kNewAvatarMenu[] = "new-avatar-menu"; | |
| 47 | |
| 48 } // namespace switches | 48 } // namespace switches |
| OLD | NEW |