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 "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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 157 | 157 |
| 158 bool IsNewProfileManagement() { | 158 bool IsNewProfileManagement() { |
| 159 return GetProcessState() >= STATE_NEW_PROFILE_MANAGEMENT; | 159 return GetProcessState() >= STATE_NEW_PROFILE_MANAGEMENT; |
| 160 } | 160 } |
| 161 | 161 |
| 162 bool IsNewProfileManagementPreviewEnabled() { | 162 bool IsNewProfileManagementPreviewEnabled() { |
| 163 // No promotion to Enable Account Consistency. | 163 // No promotion to Enable Account Consistency. |
| 164 return false; | 164 return false; |
| 165 } | 165 } |
| 166 | 166 |
| 167 void EnableIframeBasedSigninForTesting(base::CommandLine* command_line) { | |
| 168 command_line->AppendSwitch(switches::kEnableIframeBasedSignin); | |
|
Charlie Reis
2015/03/11 20:23:10
Is there a reason you need this method rather than
wjmaclean
2015/03/23 15:31:52
I can do it directly in the test ... I was just fo
| |
| 169 } | |
| 170 | |
| 167 void EnableNewAvatarMenuForTesting(base::CommandLine* command_line) { | 171 void EnableNewAvatarMenuForTesting(base::CommandLine* command_line) { |
| 168 command_line->AppendSwitch(switches::kEnableNewAvatarMenu); | 172 command_line->AppendSwitch(switches::kEnableNewAvatarMenu); |
| 169 DCHECK(!command_line->HasSwitch(switches::kDisableNewAvatarMenu)); | 173 DCHECK(!command_line->HasSwitch(switches::kDisableNewAvatarMenu)); |
| 170 } | 174 } |
| 171 | 175 |
| 172 void DisableNewAvatarMenuForTesting(base::CommandLine* command_line) { | 176 void DisableNewAvatarMenuForTesting(base::CommandLine* command_line) { |
| 173 command_line->AppendSwitch(switches::kDisableNewAvatarMenu); | 177 command_line->AppendSwitch(switches::kDisableNewAvatarMenu); |
| 174 DCHECK(!command_line->HasSwitch(switches::kEnableNewAvatarMenu)); | 178 DCHECK(!command_line->HasSwitch(switches::kEnableNewAvatarMenu)); |
| 175 } | 179 } |
| 176 | 180 |
| 177 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) { | 181 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) { |
| 178 command_line->AppendSwitch(switches::kEnableNewProfileManagement); | 182 command_line->AppendSwitch(switches::kEnableNewProfileManagement); |
| 179 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement)); | 183 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement)); |
| 180 } | 184 } |
| 181 | 185 |
| 182 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { | 186 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { |
| 183 command_line->AppendSwitch(switches::kEnableAccountConsistency); | 187 command_line->AppendSwitch(switches::kEnableAccountConsistency); |
| 184 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency)); | 188 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency)); |
| 185 } | 189 } |
| 186 | 190 |
| 187 } // namespace switches | 191 } // namespace switches |
| OLD | NEW |