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

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

Issue 795873004: Enable webview-based sign-in to chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Put back old value and label in histograms Created 5 years, 11 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | components/signin/core/common/signin_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6d7b089eacc2b66d2c3d8553ce60ddeca5792aa0..90b1effc44548dd275adf6326c8632c32b5fa76f 100644
--- a/components/signin/core/common/profile_management_switches.cc
+++ b/components/signin/core/common/profile_management_switches.cc
@@ -135,8 +135,13 @@ bool IsEnableWebBasedSignin() {
}
bool IsEnableWebviewBasedSignin() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableWebviewBasedSignin);
+ // For now, the webview is enabled only for desktop.
+#if defined(OS_CHROMEOS)
+ return false;
+#else
+ return !base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableIframeBasedSignin);
+#endif
}
bool IsExtensionsMultiAccount() {
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | components/signin/core/common/signin_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698