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

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

Issue 323133005: Enable consistent identity on android platform by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 6 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 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 // These are functions to access various profile-management flags but with 5 // These are functions to access various profile-management flags but with
6 // possible overrides from Experiements. This is done inside chrome/common 6 // possible overrides from Experiements. This is done inside chrome/common
7 // because it is accessed by files through the chrome/ directory tree. 7 // because it is accessed by files through the chrome/ directory tree.
8 8
9 #ifndef CHROME_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ 9 #ifndef CHROME_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_
10 #define CHROME_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ 10 #define CHROME_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_
11 11
12 namespace base {
13 class CommandLine;
14 }
15
12 namespace switches { 16 namespace switches {
13 17
14 // Checks whether account consistency is enabled. 18 // Checks whether account consistency is enabled.
15 bool IsEnableAccountConsistency(); 19 bool IsEnableAccountConsistency();
16 20
17 // Enables the web-based sign in flow on Chrome desktop. 21 // Enables the web-based sign in flow on Chrome desktop.
18 bool IsEnableWebBasedSignin(); 22 bool IsEnableWebBasedSignin();
19 23
20 // Whether the chrome.identity API should be multi-account. 24 // Whether the chrome.identity API should be multi-account.
21 bool IsExtensionsMultiAccount(); 25 bool IsExtensionsMultiAccount();
22 26
23 // Checks whether the flag for fast user switching is enabled. 27 // Checks whether the flag for fast user switching is enabled.
24 bool IsFastUserSwitching(); 28 bool IsFastUserSwitching();
25 29
26 // Enables using GAIA information to populate profile name and icon. 30 // Enables using GAIA information to populate profile name and icon.
27 bool IsGoogleProfileInfo(); 31 bool IsGoogleProfileInfo();
28 32
29 // Whether the new avatar menu is enabled, either because new profile management 33 // Whether the new avatar menu is enabled, either because new profile management
30 // is enabled or because the new profile management preview UI is enabled. 34 // is enabled or because the new profile management preview UI is enabled.
31 bool IsNewAvatarMenu(); 35 bool IsNewAvatarMenu();
32 36
33 // Use new profile management system, including profile sign-out and new 37 // Use new profile management system, including profile sign-out and new
34 // choosers. 38 // choosers.
35 bool IsNewProfileManagement(); 39 bool IsNewProfileManagement();
36 40
37 // Whether the new profile management preview has been enabled. 41 // Whether the new profile management preview has been enabled.
38 bool IsNewProfileManagementPreviewEnabled(); 42 bool IsNewProfileManagementPreviewEnabled();
39 43
44 // Called in tests to force enabling different modes.
45 void EnableNewProfileManagementForTesting(base::CommandLine* command_line);
46 void EnableAccountConsistencyForTesting(base::CommandLine* command_line);
47
40 } // namespace switches 48 } // namespace switches
41 49
42 #endif // CHROME_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ 50 #endif // CHROME_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698