| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 // Enables using GAIA information to populate profile name and icon. | 28 // Enables using GAIA information to populate profile name and icon. |
| 29 bool IsGoogleProfileInfo(); | 29 bool IsGoogleProfileInfo(); |
| 30 | 30 |
| 31 // Use new profile management system, including profile sign-out and new | 31 // Use new profile management system, including profile sign-out and new |
| 32 // choosers. | 32 // choosers. |
| 33 bool IsNewProfileManagement(); | 33 bool IsNewProfileManagement(); |
| 34 | 34 |
| 35 // Whether the new profile management preview has been enabled. | 35 // Whether the new profile management preview has been enabled. |
| 36 bool IsNewProfileManagementPreviewEnabled(); | 36 bool IsNewProfileManagementPreviewEnabled(); |
| 37 |
| 38 // Checks whether the new gaia password separated sign in flow is enabled. |
| 39 bool UsePasswordSeparatedSigninFlow(); |
| 40 |
| 37 // Called in tests to force enabling different modes. | 41 // Called in tests to force enabling different modes. |
| 38 void EnableNewProfileManagementForTesting(base::CommandLine* command_line); | 42 void EnableNewProfileManagementForTesting(base::CommandLine* command_line); |
| 39 void EnableAccountConsistencyForTesting(base::CommandLine* command_line); | 43 void EnableAccountConsistencyForTesting(base::CommandLine* command_line); |
| 40 | 44 |
| 41 } // namespace switches | 45 } // namespace switches |
| 42 | 46 |
| 43 #endif // COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ | 47 #endif // COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ |
| OLD | NEW |