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

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

Issue 872433006: Disconnect one click sign in code. The code itself will be removed in followup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge Created 5 years, 10 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.cc
diff --git a/components/signin/core/common/profile_management_switches.cc b/components/signin/core/common/profile_management_switches.cc
index 90b1effc44548dd275adf6326c8632c32b5fa76f..84a3a89b75ee7ce81badcf51733ae636cadf6225 100644
--- a/components/signin/core/common/profile_management_switches.cc
+++ b/components/signin/core/common/profile_management_switches.cc
@@ -24,12 +24,6 @@ enum State {
};
State GetProcessState() {
- // Disables the new avatar menu if the web-based signin is turned on, because
- // the new avatar menu always uses the inline signin, which may break some
- // SAML users.
- if (switches::IsEnableWebBasedSignin())
- return STATE_OLD_AVATAR_MENU;
-
// Find the state of both command line args.
bool is_new_avatar_menu = base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableNewAvatarMenu);
@@ -128,12 +122,6 @@ bool IsEnableAccountConsistency() {
return GetProcessState() >= STATE_ACCOUNT_CONSISTENCY;
}
-bool IsEnableWebBasedSignin() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableWebBasedSignin) &&
- !IsEnableWebviewBasedSignin();
-}
-
bool IsEnableWebviewBasedSignin() {
// For now, the webview is enabled only for desktop.
#if defined(OS_CHROMEOS)
« no previous file with comments | « components/signin/core/common/profile_management_switches.h ('k') | components/signin/core/common/signin_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698