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 10 matching lines...) Expand all Loading... | |
21 | 21 |
22 // Checks whether the webview-based sign in flow is enabled on Chrome desktop. | 22 // Checks whether the webview-based sign in flow is enabled on Chrome desktop. |
23 bool IsEnableWebviewBasedSignin(); | 23 bool IsEnableWebviewBasedSignin(); |
24 | 24 |
25 // Whether the chrome.identity API should be multi-account. | 25 // Whether the chrome.identity API should be multi-account. |
26 bool IsExtensionsMultiAccount(); | 26 bool IsExtensionsMultiAccount(); |
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 // Whether the new avatar menu is enabled, either because new profile management | |
32 // is enabled or because the new profile management preview UI is enabled. | |
33 bool IsNewAvatarMenu(); | |
34 | |
35 // Use new profile management system, including profile sign-out and new | 31 // Use new profile management system, including profile sign-out and new |
36 // choosers. | 32 // choosers. |
37 bool IsNewProfileManagement(); | 33 bool IsNewProfileManagement(); |
38 | 34 |
39 // Whether the new profile management preview has been enabled. | 35 // Whether the new profile management preview has been enabled. |
40 bool IsNewProfileManagementPreviewEnabled(); | 36 bool IsNewProfileManagementPreviewEnabled(); |
41 | 37 //bool IsNewAvatarMenu(); |
42 // Called in tests to force enabling different modes. | 38 // Called in tests to force enabling different modes. |
43 void EnableNewAvatarMenuForTesting(base::CommandLine* command_line); | 39 //void EnableNewAvatarMenuForTesting(base::CommandLine* command_line); |
Mike Lerman
2015/09/28 15:23:02
Add a TODO to remove these methods... or just remo
Roger Tawa OOO till Jul 10th
2015/09/28 20:01:28
Should just remove it all now.
anthonyvd
2015/09/29 20:23:16
Oops! Good catch :)
| |
44 void DisableNewAvatarMenuForTesting(base::CommandLine* command_line); | 40 //void DisableNewAvatarMenuForTesting(base::CommandLine* command_line); |
45 void EnableNewProfileManagementForTesting(base::CommandLine* command_line); | 41 void EnableNewProfileManagementForTesting(base::CommandLine* command_line); |
46 void EnableAccountConsistencyForTesting(base::CommandLine* command_line); | 42 void EnableAccountConsistencyForTesting(base::CommandLine* command_line); |
47 | 43 |
48 } // namespace switches | 44 } // namespace switches |
49 | 45 |
50 #endif // COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ | 46 #endif // COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ |
OLD | NEW |