| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |