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

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

Issue 2758583002: Remove google-profile-info switch. (Closed)
Patch Set: Revert histograms.xml 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
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 bool IsEnableAccountConsistency() { 112 bool IsEnableAccountConsistency() {
113 return GetProcessState() >= STATE_ACCOUNT_CONSISTENCY; 113 return GetProcessState() >= STATE_ACCOUNT_CONSISTENCY;
114 } 114 }
115 115
116 bool IsExtensionsMultiAccount() { 116 bool IsExtensionsMultiAccount() {
117 return CheckFlag(switches::kExtensionsMultiAccount, 117 return CheckFlag(switches::kExtensionsMultiAccount,
118 STATE_ACCOUNT_CONSISTENCY); 118 STATE_ACCOUNT_CONSISTENCY);
119 } 119 }
120 120
121 bool IsGoogleProfileInfo() {
122 return CheckFlag(switches::kGoogleProfileInfo, STATE_NEW_AVATAR_MENU);
123 }
124
125 bool IsNewProfileManagement() { 121 bool IsNewProfileManagement() {
126 return GetProcessState() >= STATE_NEW_PROFILE_MANAGEMENT; 122 return GetProcessState() >= STATE_NEW_PROFILE_MANAGEMENT;
127 } 123 }
128 124
129 bool IsNewProfileManagementPreviewEnabled() { 125 bool IsNewProfileManagementPreviewEnabled() {
130 // No promotion to Enable Account Consistency. 126 // No promotion to Enable Account Consistency.
131 return false; 127 return false;
132 } 128 }
133 129
134 bool UsePasswordSeparatedSigninFlow() { 130 bool UsePasswordSeparatedSigninFlow() {
135 return base::FeatureList::IsEnabled( 131 return base::FeatureList::IsEnabled(
136 switches::kUsePasswordSeparatedSigninFlow); 132 switches::kUsePasswordSeparatedSigninFlow);
137 } 133 }
138 134
139 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) { 135 void EnableNewProfileManagementForTesting(base::CommandLine* command_line) {
140 command_line->AppendSwitch(switches::kEnableNewProfileManagement); 136 command_line->AppendSwitch(switches::kEnableNewProfileManagement);
141 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement)); 137 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement));
142 } 138 }
143 139
144 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { 140 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) {
145 command_line->AppendSwitch(switches::kEnableAccountConsistency); 141 command_line->AppendSwitch(switches::kEnableAccountConsistency);
146 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency)); 142 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency));
147 } 143 }
148 144
149 } // namespace switches 145 } // namespace switches
OLDNEW
« no previous file with comments | « components/signin/core/common/profile_management_switches.h ('k') | components/signin/core/common/signin_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698