Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(873)

Side by Side Diff: components/signin/core/common/profile_management_switches.cc

Issue 2762173003: Remove IsNewProfileManagement and EnableNewProfileManagementForTesting (Closed)
Patch Set: Fix compile (add back an include) Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/signin/core/common/profile_management_switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/signin/core/common/profile_management_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698