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 18 matching lines...) Expand all Loading... |
29 NOTREACHED() << "Extensions are not enabled on Android or iOS"; | 29 NOTREACHED() << "Extensions are not enabled on Android or iOS"; |
30 // Account consistency is enabled on Android and iOS. | 30 // Account consistency is enabled on Android and iOS. |
31 return false; | 31 return false; |
32 #endif | 32 #endif |
33 | 33 |
34 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 34 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
35 switches::kExtensionsMultiAccount) || | 35 switches::kExtensionsMultiAccount) || |
36 IsEnableAccountConsistency(); | 36 IsEnableAccountConsistency(); |
37 } | 37 } |
38 | 38 |
39 bool IsNewProfileManagement() { | |
40 return true; | |
41 } | |
42 | |
43 bool UsePasswordSeparatedSigninFlow() { | 39 bool UsePasswordSeparatedSigninFlow() { |
44 return base::FeatureList::IsEnabled( | 40 return base::FeatureList::IsEnabled( |
45 switches::kUsePasswordSeparatedSigninFlow); | 41 switches::kUsePasswordSeparatedSigninFlow); |
46 } | 42 } |
47 | 43 |
48 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) { | |
49 // No-op as new profile management is always enabled. | |
50 } | |
51 | |
52 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { | 44 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { |
53 command_line->AppendSwitch(switches::kEnableAccountConsistency); | 45 command_line->AppendSwitch(switches::kEnableAccountConsistency); |
54 } | 46 } |
55 | 47 |
56 } // namespace switches | 48 } // namespace switches |
OLD | NEW |