| 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 // 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 base { | 12 namespace base { |
| 13 class CommandLine; | 13 class CommandLine; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace switches { | 16 namespace switches { |
| 17 | 17 |
| 18 // Checks whether account consistency is enabled. If enabled, the account | 18 // Checks whether account consistency is enabled. If enabled, the account |
| 19 // management UI is available in the avatar bubble. | 19 // management UI is available in the avatar bubble. |
| 20 bool IsEnableAccountConsistency(); | 20 bool IsEnableAccountConsistency(); |
| 21 | 21 |
| 22 // Enables the web-based sign in flow on Chrome desktop. | 22 // Checks whether the web-based sign in flow is enabled on Chrome desktop. |
| 23 bool IsEnableWebBasedSignin(); | 23 bool IsEnableWebBasedSignin(); |
| 24 | 24 |
| 25 // Checks whether the webview-based sign in flow is enabled on Chrome desktop. |
| 26 bool IsEnableWebviewBasedSignin(); |
| 27 |
| 25 // Whether the chrome.identity API should be multi-account. | 28 // Whether the chrome.identity API should be multi-account. |
| 26 bool IsExtensionsMultiAccount(); | 29 bool IsExtensionsMultiAccount(); |
| 27 | 30 |
| 28 // Checks whether the flag for fast user switching is enabled. | 31 // Checks whether the flag for fast user switching is enabled. |
| 29 bool IsFastUserSwitching(); | 32 bool IsFastUserSwitching(); |
| 30 | 33 |
| 31 // Enables using GAIA information to populate profile name and icon. | 34 // Enables using GAIA information to populate profile name and icon. |
| 32 bool IsGoogleProfileInfo(); | 35 bool IsGoogleProfileInfo(); |
| 33 | 36 |
| 34 // Whether the new avatar menu is enabled, either because new profile management | 37 // Whether the new avatar menu is enabled, either because new profile management |
| 35 // is enabled or because the new profile management preview UI is enabled. | 38 // is enabled or because the new profile management preview UI is enabled. |
| 36 bool IsNewAvatarMenu(); | 39 bool IsNewAvatarMenu(); |
| 37 | 40 |
| 38 // Use new profile management system, including profile sign-out and new | 41 // Use new profile management system, including profile sign-out and new |
| 39 // choosers. | 42 // choosers. |
| 40 bool IsNewProfileManagement(); | 43 bool IsNewProfileManagement(); |
| 41 | 44 |
| 42 // Whether the new profile management preview has been enabled. | 45 // Whether the new profile management preview has been enabled. |
| 43 bool IsNewProfileManagementPreviewEnabled(); | 46 bool IsNewProfileManagementPreviewEnabled(); |
| 44 | 47 |
| 45 // Called in tests to force enabling different modes. | 48 // Called in tests to force enabling different modes. |
| 46 void EnableNewAvatarMenuForTesting(base::CommandLine* command_line); | 49 void EnableNewAvatarMenuForTesting(base::CommandLine* command_line); |
| 47 void DisableNewAvatarMenuForTesting(base::CommandLine* command_line); | 50 void DisableNewAvatarMenuForTesting(base::CommandLine* command_line); |
| 48 void EnableNewProfileManagementForTesting(base::CommandLine* command_line); | 51 void EnableNewProfileManagementForTesting(base::CommandLine* command_line); |
| 49 void EnableAccountConsistencyForTesting(base::CommandLine* command_line); | 52 void EnableAccountConsistencyForTesting(base::CommandLine* command_line); |
| 50 | 53 |
| 51 } // namespace switches | 54 } // namespace switches |
| 52 | 55 |
| 53 #endif // CHROME_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ | 56 #endif // CHROME_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ |
| OLD | NEW |