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

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

Issue 1116353004: Remove the #enable-fast-user-switcher flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad merge Created 5 years, 7 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "components/signin/core/common/signin_switches.h" 10 #include "components/signin/core/common/signin_switches.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 return !base::CommandLine::ForCurrentProcess()->HasSwitch( 130 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
131 switches::kEnableIframeBasedSignin); 131 switches::kEnableIframeBasedSignin);
132 #endif 132 #endif
133 } 133 }
134 134
135 bool IsExtensionsMultiAccount() { 135 bool IsExtensionsMultiAccount() {
136 return CheckFlag(switches::kExtensionsMultiAccount, 136 return CheckFlag(switches::kExtensionsMultiAccount,
137 STATE_ACCOUNT_CONSISTENCY); 137 STATE_ACCOUNT_CONSISTENCY);
138 } 138 }
139 139
140 bool IsFastUserSwitching() {
141 return base::CommandLine::ForCurrentProcess()->HasSwitch(
142 switches::kFastUserSwitching);
143 }
144
145 bool IsGoogleProfileInfo() { 140 bool IsGoogleProfileInfo() {
146 return CheckFlag(switches::kGoogleProfileInfo, STATE_NEW_AVATAR_MENU); 141 return CheckFlag(switches::kGoogleProfileInfo, STATE_NEW_AVATAR_MENU);
147 } 142 }
148 143
149 bool IsNewAvatarMenu() { 144 bool IsNewAvatarMenu() {
150 // NewAvatarMenu is only available on desktop. 145 // NewAvatarMenu is only available on desktop.
151 #if defined(OS_ANDROID) || defined(OS_IOS) || defined(OS_CHROMEOS) 146 #if defined(OS_ANDROID) || defined(OS_IOS) || defined(OS_CHROMEOS)
152 return false; 147 return false;
153 #else 148 #else
154 return GetProcessState() >= STATE_NEW_AVATAR_MENU; 149 return GetProcessState() >= STATE_NEW_AVATAR_MENU;
(...skipping 23 matching lines...) Expand all
178 command_line->AppendSwitch(switches::kEnableNewProfileManagement); 173 command_line->AppendSwitch(switches::kEnableNewProfileManagement);
179 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement)); 174 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement));
180 } 175 }
181 176
182 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { 177 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) {
183 command_line->AppendSwitch(switches::kEnableAccountConsistency); 178 command_line->AppendSwitch(switches::kEnableAccountConsistency);
184 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency)); 179 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency));
185 } 180 }
186 181
187 } // namespace switches 182 } // 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