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

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

Issue 1782583003: Puts the new Material Design User Manager behind a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 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
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>
8
7 #include "base/command_line.h" 9 #include "base/command_line.h"
8 #include "base/feature_list.h" 10 #include "base/feature_list.h"
9 #include "base/metrics/field_trial.h" 11 #include "base/metrics/field_trial.h"
10 #include "build/build_config.h" 12 #include "build/build_config.h"
11 #include "components/signin/core/common/signin_switches.h" 13 #include "components/signin/core/common/signin_switches.h"
12 14
13 namespace { 15 namespace {
14 16
15 const char kNewProfileManagementFieldTrialName[] = "NewProfileManagement"; 17 const char kNewProfileManagementFieldTrialName[] = "NewProfileManagement";
16 18
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 bool IsNewProfileManagementPreviewEnabled() { 129 bool IsNewProfileManagementPreviewEnabled() {
128 // No promotion to Enable Account Consistency. 130 // No promotion to Enable Account Consistency.
129 return false; 131 return false;
130 } 132 }
131 133
132 bool UsePasswordSeparatedSigninFlow() { 134 bool UsePasswordSeparatedSigninFlow() {
133 return base::FeatureList::IsEnabled( 135 return base::FeatureList::IsEnabled(
134 switches::kUsePasswordSeparatedSigninFlow); 136 switches::kUsePasswordSeparatedSigninFlow);
135 } 137 }
136 138
139 bool IsMaterialDesignUserManager() {
140 return base::FeatureList::IsEnabled(switches::kMaterialDesignUserManager);
141 }
142
137 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) { 143 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) {
138 command_line->AppendSwitch(switches::kEnableNewProfileManagement); 144 command_line->AppendSwitch(switches::kEnableNewProfileManagement);
139 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement)); 145 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement));
140 } 146 }
141 147
142 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { 148 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) {
143 command_line->AppendSwitch(switches::kEnableAccountConsistency); 149 command_line->AppendSwitch(switches::kEnableAccountConsistency);
144 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency)); 150 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency));
145 } 151 }
146 152
147 } // namespace switches 153 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698