Chromium Code Reviews| Index: components/signin/core/common/profile_management_switches.h |
| diff --git a/components/signin/core/common/profile_management_switches.h b/components/signin/core/common/profile_management_switches.h |
| index 765cfa4bb38d07b4d4166e84f20d171cd8913d0b..a393d91f95d628e3579af84bd476ce1452b3bfad 100644 |
| --- a/components/signin/core/common/profile_management_switches.h |
| +++ b/components/signin/core/common/profile_management_switches.h |
| @@ -9,14 +9,26 @@ |
| #ifndef COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ |
| #define COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ |
| +#include "build/build_config.h" |
| + |
| namespace base { |
| class CommandLine; |
| } |
| namespace switches { |
| +enum class AccountConsistencyMethod { |
| + kDisabled, // No account consistency. |
| + kMirror, // Account management UI in the avatar bubble. |
| + kDice // Account management UI on Gaia webpages. |
| +}; |
| + |
| +// Returns the account consistency method. |
| +AccountConsistencyMethod GetAccountConsistencyMethod(); |
| + |
| // Checks whether Mirror account consistency is enabled. If enabled, the account |
| // management UI is available in the avatar bubble. |
| +// DEPRECATED: Use GetAccountConsistencyMethod() instead. |
| bool IsAccountConsistencyMirrorEnabled(); |
| // Whether the chrome.identity API should be multi-account. |
| @@ -25,6 +37,12 @@ bool IsExtensionsMultiAccount(); |
| // Called in tests to force enable Mirror account consistency. |
| void EnableAccountConsistencyMirrorForTesting(base::CommandLine* command_line); |
| +// DICe is only supported on desktop. |
|
msarda
2017/06/08 23:43:05
Dice
droger
2017/06/09 09:52:24
Done.
|
| +#if !defined(OS_ANDROID) && !defined(OS_IOS) |
| +// Called in tests to force enable DICe account consistency. |
|
msarda
2017/06/08 23:43:05
Dice
droger
2017/06/09 09:52:24
Done.
|
| +void EnableAccountConsistencyDiceForTesting(base::CommandLine* command_line); |
| +#endif |
| + |
| } // namespace switches |
| #endif // COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ |