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

Side by Side Diff: components/signin/core/common/profile_management_switches.cc

Issue 1344443002: Implement new password separated sign in flow for chrome desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged Created 5 years, 2 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 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 bool IsNewProfileManagement() { 132 bool IsNewProfileManagement() {
133 return GetProcessState() >= STATE_NEW_PROFILE_MANAGEMENT; 133 return GetProcessState() >= STATE_NEW_PROFILE_MANAGEMENT;
134 } 134 }
135 135
136 bool IsNewProfileManagementPreviewEnabled() { 136 bool IsNewProfileManagementPreviewEnabled() {
137 // No promotion to Enable Account Consistency. 137 // No promotion to Enable Account Consistency.
138 return false; 138 return false;
139 } 139 }
140 140
141 bool UsePasswordSeparatedSigninFlow() {
142 return base::CommandLine::ForCurrentProcess()->HasSwitch(
143 switches::kEnablePasswordSeparatedSigninFlow);
144 }
145
141 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) { 146 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) {
142 command_line->AppendSwitch(switches::kEnableNewProfileManagement); 147 command_line->AppendSwitch(switches::kEnableNewProfileManagement);
143 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement)); 148 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement));
144 } 149 }
145 150
146 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { 151 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) {
147 command_line->AppendSwitch(switches::kEnableAccountConsistency); 152 command_line->AppendSwitch(switches::kEnableAccountConsistency);
148 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency)); 153 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency));
149 } 154 }
150 155
151 } // namespace switches 156 } // namespace switches
OLDNEW
« 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