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

Side by Side Diff: chrome/common/profile_management_switches.cc

Issue 235833002: [Mac] Redesign the avatar bubble UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: preemptive nits Created 6 years, 8 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/common/profile_management_switches.h" 5 #include "chrome/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 "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 return 53 return
54 CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewAvatarMenu) || 54 CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewAvatarMenu) ||
55 IsNewProfileManagement(); 55 IsNewProfileManagement();
56 } 56 }
57 57
58 bool IsNewProfileManagement() { 58 bool IsNewProfileManagement() {
59 return CheckProfileManagementFlag(switches::kNewProfileManagement, true); 59 return CheckProfileManagementFlag(switches::kNewProfileManagement, true);
60 } 60 }
61 61
62 bool IsFastUserSwitching() { 62 bool IsFastUserSwitching() {
63 bool is_just_new_menu =
64 CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewAvatarMenu) &&
65 !IsNewProfileManagement();
63 return CommandLine::ForCurrentProcess()->HasSwitch( 66 return CommandLine::ForCurrentProcess()->HasSwitch(
64 switches::kFastUserSwitching); 67 switches::kFastUserSwitching) || is_just_new_menu;
65 } 68 }
66 69
67 } // namespace switches 70 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698