Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: components/signin/core/common/profile_management_switches.h

Issue 2923733003: [signin] Add DICe flow for account consistency requests. (Closed)
Patch Set: fix style Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698