Chromium Code Reviews| 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> | |
|
anthonyvd
2016/03/10 16:01:44
Is this include necessary?
Moe
2016/03/10 18:18:21
to quiet git-cl lint
| |
| 8 | |
| 7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 8 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
| 9 #include "base/metrics/field_trial.h" | 11 #include "base/metrics/field_trial.h" |
| 10 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 11 #include "components/signin/core/common/signin_switches.h" | 13 #include "components/signin/core/common/signin_switches.h" |
| 12 | 14 |
| 13 namespace { | 15 namespace { |
| 14 | 16 |
| 15 const char kNewProfileManagementFieldTrialName[] = "NewProfileManagement"; | 17 const char kNewProfileManagementFieldTrialName[] = "NewProfileManagement"; |
| 16 | 18 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 127 bool IsNewProfileManagementPreviewEnabled() { | 129 bool IsNewProfileManagementPreviewEnabled() { |
| 128 // No promotion to Enable Account Consistency. | 130 // No promotion to Enable Account Consistency. |
| 129 return false; | 131 return false; |
| 130 } | 132 } |
| 131 | 133 |
| 132 bool UsePasswordSeparatedSigninFlow() { | 134 bool UsePasswordSeparatedSigninFlow() { |
| 133 return base::FeatureList::IsEnabled( | 135 return base::FeatureList::IsEnabled( |
| 134 switches::kUsePasswordSeparatedSigninFlow); | 136 switches::kUsePasswordSeparatedSigninFlow); |
| 135 } | 137 } |
| 136 | 138 |
| 139 bool IsMDUserManager() { | |
| 140 return base::FeatureList::IsEnabled(switches::kMDUserManager); | |
| 141 } | |
| 142 | |
| 137 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) { | 143 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) { |
| 138 command_line->AppendSwitch(switches::kEnableNewProfileManagement); | 144 command_line->AppendSwitch(switches::kEnableNewProfileManagement); |
| 139 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement)); | 145 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement)); |
| 140 } | 146 } |
| 141 | 147 |
| 142 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { | 148 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { |
| 143 command_line->AppendSwitch(switches::kEnableAccountConsistency); | 149 command_line->AppendSwitch(switches::kEnableAccountConsistency); |
| 144 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency)); | 150 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency)); |
| 145 } | 151 } |
| 146 | 152 |
| 147 } // namespace switches | 153 } // namespace switches |
| OLD | NEW |