| 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 kDisabled, // No account consistency. | 21 kDisabled, // No account consistency. |
| 22 kMirror, // Account management UI in the avatar bubble. | 22 kMirror, // Account management UI in the avatar bubble. |
| 23 kDice // Account management UI on Gaia webpages. | 23 kDice // Account management UI on Gaia webpages. |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 // Returns the account consistency method. | 26 // Returns the account consistency method. |
| 27 AccountConsistencyMethod GetAccountConsistencyMethod(); | 27 AccountConsistencyMethod GetAccountConsistencyMethod(); |
| 28 | 28 |
| 29 // Checks whether Mirror account consistency is enabled. If enabled, the account | 29 // Checks whether Mirror account consistency is enabled. If enabled, the account |
| 30 // management UI is available in the avatar bubble. | 30 // management UI is available in the avatar bubble. |
| 31 // DEPRECATED: Use GetAccountConsistencyMethod() instead. | |
| 32 bool IsAccountConsistencyMirrorEnabled(); | 31 bool IsAccountConsistencyMirrorEnabled(); |
| 33 | 32 |
| 33 // Checks whether Dice account consistency is enabled. If enabled, then account |
| 34 // management UI is available on the Gaia webpages. |
| 35 bool IsAccountConsistencyDiceEnabled(); |
| 36 |
| 34 // Whether the chrome.identity API should be multi-account. | 37 // Whether the chrome.identity API should be multi-account. |
| 35 bool IsExtensionsMultiAccount(); | 38 bool IsExtensionsMultiAccount(); |
| 36 | 39 |
| 37 // Called in tests to force enable Mirror account consistency. | 40 // Called in tests to force enable Mirror account consistency. |
| 38 void EnableAccountConsistencyMirrorForTesting(base::CommandLine* command_line); | 41 void EnableAccountConsistencyMirrorForTesting(base::CommandLine* command_line); |
| 39 | 42 |
| 40 // Dice is only supported on desktop. | 43 // Dice is only supported on desktop. |
| 41 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 44 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 42 // Called in tests to force enable Dice account consistency. | 45 // Called in tests to force enable Dice account consistency. |
| 43 void EnableAccountConsistencyDiceForTesting(base::CommandLine* command_line); | 46 void EnableAccountConsistencyDiceForTesting(base::CommandLine* command_line); |
| 44 #endif | 47 #endif |
| 45 | 48 |
| 46 } // namespace switches | 49 } // namespace switches |
| 47 | 50 |
| 48 #endif // COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ | 51 #endif // COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ |
| OLD | NEW |