| 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 COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ | 9 #ifndef COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ |
| 10 #define COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ | 10 #define COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // is enabled or because the new profile management preview UI is enabled. | 32 // is enabled or because the new profile management preview UI is enabled. |
| 33 bool IsNewAvatarMenu(); | 33 bool IsNewAvatarMenu(); |
| 34 | 34 |
| 35 // Use new profile management system, including profile sign-out and new | 35 // Use new profile management system, including profile sign-out and new |
| 36 // choosers. | 36 // choosers. |
| 37 bool IsNewProfileManagement(); | 37 bool IsNewProfileManagement(); |
| 38 | 38 |
| 39 // Whether the new profile management preview has been enabled. | 39 // Whether the new profile management preview has been enabled. |
| 40 bool IsNewProfileManagementPreviewEnabled(); | 40 bool IsNewProfileManagementPreviewEnabled(); |
| 41 | 41 |
| 42 // Checks whether the new gaia password separated sign in flow is enabled. |
| 43 bool UsePasswordSeparatedSigninFlow(); |
| 44 |
| 42 // Called in tests to force enabling different modes. | 45 // Called in tests to force enabling different modes. |
| 43 void EnableNewAvatarMenuForTesting(base::CommandLine* command_line); | 46 void EnableNewAvatarMenuForTesting(base::CommandLine* command_line); |
| 44 void DisableNewAvatarMenuForTesting(base::CommandLine* command_line); | 47 void DisableNewAvatarMenuForTesting(base::CommandLine* command_line); |
| 45 void EnableNewProfileManagementForTesting(base::CommandLine* command_line); | 48 void EnableNewProfileManagementForTesting(base::CommandLine* command_line); |
| 46 void EnableAccountConsistencyForTesting(base::CommandLine* command_line); | 49 void EnableAccountConsistencyForTesting(base::CommandLine* command_line); |
| 47 | 50 |
| 48 } // namespace switches | 51 } // namespace switches |
| 49 | 52 |
| 50 #endif // COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ | 53 #endif // COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ |
| OLD | NEW |