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

Side by Side 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: Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/signin/core/common/profile_management_switches.h" 5 #include "components/signin/core/common/profile_management_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "components/signin/core/common/signin_switches.h" 10 #include "components/signin/core/common/signin_switches.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 bool IsEnableAccountConsistency() { 129 bool IsEnableAccountConsistency() {
130 return GetProcessState() >= STATE_ACCOUNT_CONSISTENCY; 130 return GetProcessState() >= STATE_ACCOUNT_CONSISTENCY;
131 } 131 }
132 132
133 bool IsEnableWebBasedSignin() { 133 bool IsEnableWebBasedSignin() {
134 return CommandLine::ForCurrentProcess()->HasSwitch( 134 return CommandLine::ForCurrentProcess()->HasSwitch(
135 switches::kEnableWebBasedSignin) && !IsEnableWebviewBasedSignin(); 135 switches::kEnableWebBasedSignin) && !IsEnableWebviewBasedSignin();
136 } 136 }
137 137
138 bool IsEnableWebviewBasedSignin() { 138 bool IsEnableWebviewBasedSignin() {
139 return CommandLine::ForCurrentProcess()->HasSwitch( 139 return !CommandLine::ForCurrentProcess()->HasSwitch(
140 switches::kEnableWebviewBasedSignin); 140 switches::kEnableIframeBasedSignin);
141 } 141 }
142 142
143 bool IsExtensionsMultiAccount() { 143 bool IsExtensionsMultiAccount() {
144 return CheckFlag(switches::kExtensionsMultiAccount, 144 return CheckFlag(switches::kExtensionsMultiAccount,
145 STATE_NEW_PROFILE_MANAGEMENT); 145 STATE_NEW_PROFILE_MANAGEMENT);
146 } 146 }
147 147
148 bool IsFastUserSwitching() { 148 bool IsFastUserSwitching() {
149 return CommandLine::ForCurrentProcess()->HasSwitch( 149 return CommandLine::ForCurrentProcess()->HasSwitch(
150 switches::kFastUserSwitching); 150 switches::kFastUserSwitching);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 command_line->AppendSwitch(switches::kEnableNewProfileManagement); 186 command_line->AppendSwitch(switches::kEnableNewProfileManagement);
187 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement)); 187 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement));
188 } 188 }
189 189
190 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { 190 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) {
191 command_line->AppendSwitch(switches::kEnableAccountConsistency); 191 command_line->AppendSwitch(switches::kEnableAccountConsistency);
192 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency)); 192 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency));
193 } 193 }
194 194
195 } // namespace switches 195 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698