OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // These are functions to access various profile-management flags but with | 5 // These are functions to access various profile-management flags but with |
6 // possible overrides from Experiements. This is done inside chrome/common | 6 // possible overrides from Experiements. This is done inside chrome/common |
7 // because it is accessed by files through the chrome/ directory tree. | 7 // because it is accessed by files through the chrome/ directory tree. |
8 | 8 |
9 #ifndef CHROME_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ | 9 #ifndef CHROME_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ |
10 #define CHROME_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ | 10 #define CHROME_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ |
11 | 11 |
12 namespace switches { | 12 namespace switches { |
13 | 13 |
14 // Enables the web-based sign in flow on Chrome desktop. | 14 // Enables the web-based sign in flow on Chrome desktop. |
15 bool IsEnableWebBasedSignin(); | 15 bool IsEnableWebBasedSignin(); |
16 | 16 |
| 17 // Checks whether the flag for fast user switching is enabled. |
| 18 bool IsFastUserSwitching(); |
| 19 |
17 // Enables using GAIA information to populate profile name and icon. | 20 // Enables using GAIA information to populate profile name and icon. |
18 bool IsGoogleProfileInfo(); | 21 bool IsGoogleProfileInfo(); |
19 | 22 |
| 23 // Whether the new avatar menu is enabled, either because new profile management |
| 24 // is enabled or because the new profile management preview UI is enabled. |
| 25 bool IsNewAvatarMenu(); |
| 26 |
20 // Use new profile management system, including profile sign-out and new | 27 // Use new profile management system, including profile sign-out and new |
21 // choosers. | 28 // choosers. |
22 bool IsNewProfileManagement(); | 29 bool IsNewProfileManagement(); |
23 | 30 |
24 // Whether the new avatar menu is enabled, either because new profile management | |
25 // is enabled or because the new profile management preview UI is enabled. | |
26 bool IsNewAvatarMenu(); | |
27 | |
28 // Whether the new profile management preview has been enabled. | 31 // Whether the new profile management preview has been enabled. |
29 bool IsNewProfileManagementPreviewEnabled(); | 32 bool IsNewProfileManagementPreviewEnabled(); |
30 | 33 |
31 // Checks whether the flag for fast user switching is enabled. | |
32 bool IsFastUserSwitching(); | |
33 | |
34 } // namespace switches | 34 } // namespace switches |
35 | 35 |
36 #endif // CHROME_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ | 36 #endif // CHROME_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ |
OLD | NEW |