| 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..da81c7aa53e5ff01fcac96366a16f9474f4c79d9 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.
|
| +#if !defined(OS_ANDROID) && !defined(OS_IOS)
|
| +// Called in tests to force enable Dice account consistency.
|
| +void EnableAccountConsistencyDiceForTesting(base::CommandLine* command_line);
|
| +#endif
|
| +
|
| } // namespace switches
|
|
|
| #endif // COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_
|
|
|