| 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 bool IsNewProfileManagementPreviewEnabled() { | 129 bool IsNewProfileManagementPreviewEnabled() { |
| 130 // No promotion to Enable Account Consistency. | 130 // No promotion to Enable Account Consistency. |
| 131 return false; | 131 return false; |
| 132 } | 132 } |
| 133 | 133 |
| 134 bool UsePasswordSeparatedSigninFlow() { | 134 bool UsePasswordSeparatedSigninFlow() { |
| 135 return base::FeatureList::IsEnabled( | 135 return base::FeatureList::IsEnabled( |
| 136 switches::kUsePasswordSeparatedSigninFlow); | 136 switches::kUsePasswordSeparatedSigninFlow); |
| 137 } | 137 } |
| 138 | 138 |
| 139 bool IsMaterialDesignUserMenu() { | |
| 140 return base::FeatureList::IsEnabled(switches::kMaterialDesignUserMenu); | |
| 141 } | |
| 142 | |
| 143 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) { | 139 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) { |
| 144 command_line->AppendSwitch(switches::kEnableNewProfileManagement); | 140 command_line->AppendSwitch(switches::kEnableNewProfileManagement); |
| 145 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement)); | 141 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement)); |
| 146 } | 142 } |
| 147 | 143 |
| 148 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { | 144 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { |
| 149 command_line->AppendSwitch(switches::kEnableAccountConsistency); | 145 command_line->AppendSwitch(switches::kEnableAccountConsistency); |
| 150 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency)); | 146 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency)); |
| 151 } | 147 } |
| 152 | 148 |
| 153 } // namespace switches | 149 } // namespace switches |
| OLD | NEW |