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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
185 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) { | 185 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) { |
186 command_line->AppendSwitch(switches::kEnableNewProfileManagement); | 186 command_line->AppendSwitch(switches::kEnableNewProfileManagement); |
187 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement)); | 187 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement)); |
188 } | 188 } |
189 | 189 |
190 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { | 190 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { |
191 command_line->AppendSwitch(switches::kEnableAccountConsistency); | 191 command_line->AppendSwitch(switches::kEnableAccountConsistency); |
192 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency)); | 192 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency)); |
193 } | 193 } |
194 | 194 |
195 bool HasProfilesJumplistExperiment() { | |
196 const std::string group_name = | |
197 base::FieldTrialList::FindFullName("Windows-Jumplist-Profiles"); | |
198 return group_name == "Use-Profiles"; | |
Roger Tawa OOO till Jul 10th
2014/11/13 14:54:19
Maybe remove '-' from trial and group names?
noms (inactive)
2014/11/13 16:59:55
Done. Also moved it to jumplist_win.cc because it'
| |
199 } | |
200 | |
195 } // namespace switches | 201 } // namespace switches |
OLD | NEW |