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 "build/build_config.h" | |
|
noms (inactive)
2014/06/11 14:14:12
nit: i think this include should go below, because
Roger Tawa OOO till Jul 10th
2014/06/13 02:17:19
Done.
| |
| 5 #include "components/signin/core/common/signin_switches.h" | 6 #include "components/signin/core/common/signin_switches.h" |
| 6 | 7 |
| 7 namespace switches { | 8 namespace switches { |
| 8 | 9 |
| 9 // Clears the token service before using it. This allows simulating the | 10 // Clears the token service before using it. This allows simulating the |
| 10 // expiration of credentials during testing. | 11 // expiration of credentials during testing. |
| 11 const char kClearTokenService[] = "clear-token-service"; | 12 const char kClearTokenService[] = "clear-token-service"; |
| 12 | 13 |
| 13 // Enables consistent identity features. | |
| 14 const char kEnableAccountConsistency[] = "enable-account-consistency"; | |
| 15 | |
| 16 // Enables the pure web-based flow for sign in on first run/NTP/wrench menu/ | 14 // Enables the pure web-based flow for sign in on first run/NTP/wrench menu/ |
| 17 // settings page. | 15 // settings page. |
| 18 const char kEnableWebBasedSignin[] = "enable-web-based-signin"; | 16 const char kEnableWebBasedSignin[] = "enable-web-based-signin"; |
| 19 | 17 |
| 20 // Enables multiple account versions of chrome.identity APIs. | 18 // Enables multiple account versions of chrome.identity APIs. |
| 21 const char kExtensionsMultiAccount[] = "extensions-multi-account"; | 19 const char kExtensionsMultiAccount[] = "extensions-multi-account"; |
| 22 | 20 |
| 23 // Allows displaying the list of existing profiles in the avatar bubble for | 21 // Allows displaying the list of existing profiles in the avatar bubble for |
| 24 // fast switching between profiles. | 22 // fast switching between profiles. |
| 25 const char kFastUserSwitching[] = "fast-user-switching"; | 23 const char kFastUserSwitching[] = "fast-user-switching"; |
| 26 | 24 |
| 27 // Enables using GAIA information to populate profile name and icon. | 25 // Enables using GAIA information to populate profile name and icon. |
| 28 const char kGoogleProfileInfo[] = "google-profile-info"; | 26 const char kGoogleProfileInfo[] = "google-profile-info"; |
| 29 | 27 |
| 30 // Use new avatar menu. When combined with new-profile-management, it simply | 28 // Use new avatar menu. When combined with new-profile-management, it simply |
| 31 // shows the new profile management avatar menu. Otherwise it shows a redesigned | 29 // shows the new profile management avatar menu. Otherwise it shows a redesigned |
| 32 // avatar menu with the same functionality as the old one, plus a tutorial card | 30 // avatar menu with the same functionality as the old one, plus a tutorial card |
| 33 // at the top prompting the user to try out the new profile management UI. | 31 // at the top prompting the user to try out the new profile management UI. |
| 34 const char kNewAvatarMenu[] = "new-avatar-menu"; | 32 const char kNewAvatarMenu[] = "new-avatar-menu"; |
| 35 | 33 |
| 36 // Use new profile management system, including profile sign-out and new | 34 #if defined(OS_ANDROID) |
| 37 // choosers. | 35 |
| 38 const char kNewProfileManagement[] = "new-profile-management"; | 36 // Disables consistent identity features. |
| 37 const char kDisableAccountConsistency[] = "disable-account-consistency"; | |
| 38 | |
| 39 // Disables new profile management system, including new choosers. | |
|
noms (inactive)
2014/06/11 14:14:12
nit: profile choosers? new profile chooser ui? (he
Roger Tawa OOO till Jul 10th
2014/06/13 02:17:19
Done.
| |
| 40 const char kDisableNewProfileManagement[] = "disable-new-profile-management"; | |
| 41 | |
| 42 #else | |
| 43 | |
| 44 // Enables consistent identity features. | |
| 45 const char kEnableAccountConsistency[] = "enable-account-consistency"; | |
| 46 | |
| 47 // Enables new profile management system, including new choosers. | |
| 48 const char kEnableNewProfileManagement[] = "new-profile-management"; | |
| 49 | |
| 50 #endif | |
| 39 | 51 |
| 40 } // namespace switches | 52 } // namespace switches |
| OLD | NEW |