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

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

Issue 417043008: Bring back Gaia avatars if --new-avatar-menu is turned on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: commas need spaces too Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 "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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 return CheckFlag(switches::kExtensionsMultiAccount, 115 return CheckFlag(switches::kExtensionsMultiAccount,
116 STATE_NEW_PROFILE_MANAGEMENT); 116 STATE_NEW_PROFILE_MANAGEMENT);
117 } 117 }
118 118
119 bool IsFastUserSwitching() { 119 bool IsFastUserSwitching() {
120 return CommandLine::ForCurrentProcess()->HasSwitch( 120 return CommandLine::ForCurrentProcess()->HasSwitch(
121 switches::kFastUserSwitching); 121 switches::kFastUserSwitching);
122 } 122 }
123 123
124 bool IsGoogleProfileInfo() { 124 bool IsGoogleProfileInfo() {
125 return CheckFlag(switches::kGoogleProfileInfo, 125 return IsNewAvatarMenu() ||
126 STATE_NEW_PROFILE_MANAGEMENT); 126 CheckFlag(switches::kGoogleProfileInfo, STATE_NONE);
127 } 127 }
128 128
129 bool IsNewAvatarMenu() { 129 bool IsNewAvatarMenu() {
130 bool is_new_avatar_menu = 130 bool is_new_avatar_menu =
131 CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewAvatarMenu); 131 CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewAvatarMenu);
132 return is_new_avatar_menu || IsNewProfileManagement(); 132 return is_new_avatar_menu || IsNewProfileManagement();
133 } 133 }
134 134
135 bool IsNewProfileManagement() { 135 bool IsNewProfileManagement() {
136 return GetProcessState() >= STATE_NEW_PROFILE_MANAGEMENT; 136 return GetProcessState() >= STATE_NEW_PROFILE_MANAGEMENT;
(...skipping 12 matching lines...) Expand all
149 command_line->AppendSwitch(switches::kEnableNewProfileManagement); 149 command_line->AppendSwitch(switches::kEnableNewProfileManagement);
150 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement)); 150 DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement));
151 } 151 }
152 152
153 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) { 153 void EnableAccountConsistencyForTesting(base::CommandLine* command_line) {
154 command_line->AppendSwitch(switches::kEnableAccountConsistency); 154 command_line->AppendSwitch(switches::kEnableAccountConsistency);
155 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency)); 155 DCHECK(!command_line->HasSwitch(switches::kDisableAccountConsistency));
156 } 156 }
157 157
158 } // namespace switches 158 } // namespace switches
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698