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

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

Issue 2747213003: Remove IsNewProfileManagementPreviewEnabled (Closed)
Patch Set: 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 } 119 }
120 120
121 bool IsGoogleProfileInfo() { 121 bool IsGoogleProfileInfo() {
122 return CheckFlag(switches::kGoogleProfileInfo, STATE_NEW_AVATAR_MENU); 122 return CheckFlag(switches::kGoogleProfileInfo, STATE_NEW_AVATAR_MENU);
123 } 123 }
124 124
125 bool IsNewProfileManagement() { 125 bool IsNewProfileManagement() {
126 return GetProcessState() >= STATE_NEW_PROFILE_MANAGEMENT; 126 return GetProcessState() >= STATE_NEW_PROFILE_MANAGEMENT;
127 } 127 }
128 128
129 bool IsNewProfileManagementPreviewEnabled() {
130 // No promotion to Enable Account Consistency.
131 return false;
132 }
133
134 bool UsePasswordSeparatedSigninFlow() { 129 bool UsePasswordSeparatedSigninFlow() {
135 return base::FeatureList::IsEnabled( 130 return base::FeatureList::IsEnabled(
136 switches::kUsePasswordSeparatedSigninFlow); 131 switches::kUsePasswordSeparatedSigninFlow);
137 } 132 }
138 133
139 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) { 134 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) {
140 command_line->AppendSwitch(switches::kEnableNewProfileManagement); 135 command_line->AppendSwitch(switches::kEnableNewProfileManagement);
141 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement)); 136 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement));
142 } 137 }
143 138
144 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { 139 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) {
145 command_line->AppendSwitch(switches::kEnableAccountConsistency); 140 command_line->AppendSwitch(switches::kEnableAccountConsistency);
146 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency)); 141 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency));
147 } 142 }
148 143
149 } // namespace switches 144 } // 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