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

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

Issue 2946693002: Use GN buildflags and features to configure account consistency (Closed)
Patch Set: fix Created 3 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
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 COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ 9 #ifndef COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_
10 #define COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ 10 #define COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_
11 11
12 #include "build/build_config.h" 12 #include "components/signin/core/common/signin_features.h"
13 13
14 namespace base { 14 namespace base {
15 class CommandLine; 15 class CommandLine;
16 } 16 }
17 17
18 namespace switches { 18 namespace switches {
19 19
20 enum class AccountConsistencyMethod { 20 enum class AccountConsistencyMethod {
21 kDisabled, // No account consistency. 21 kDisabled, // No account consistency.
22 kMirror, // Account management UI in the avatar bubble. 22 kMirror, // Account management UI in the avatar bubble.
(...skipping 10 matching lines...) Expand all
33 // Checks whether Dice account consistency is enabled. If enabled, then account 33 // Checks whether Dice account consistency is enabled. If enabled, then account
34 // management UI is available on the Gaia webpages. 34 // management UI is available on the Gaia webpages.
35 bool IsAccountConsistencyDiceEnabled(); 35 bool IsAccountConsistencyDiceEnabled();
36 36
37 // Whether the chrome.identity API should be multi-account. 37 // Whether the chrome.identity API should be multi-account.
38 bool IsExtensionsMultiAccount(); 38 bool IsExtensionsMultiAccount();
39 39
40 // Called in tests to force enable Mirror account consistency. 40 // Called in tests to force enable Mirror account consistency.
41 void EnableAccountConsistencyMirrorForTesting(base::CommandLine* command_line); 41 void EnableAccountConsistencyMirrorForTesting(base::CommandLine* command_line);
42 42
43 // Dice is only supported on desktop. 43 #if BUILDFLAG(ENABLE_DICE_SUPPORT)
44 #if !defined(OS_ANDROID) && !defined(OS_IOS)
45 // Called in tests to force enable Dice account consistency. 44 // Called in tests to force enable Dice account consistency.
46 void EnableAccountConsistencyDiceForTesting(base::CommandLine* command_line); 45 void EnableAccountConsistencyDiceForTesting(base::CommandLine* command_line);
47 #endif 46 #endif
48 47
49 } // namespace switches 48 } // namespace switches
50 49
51 #endif // COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_ 50 #endif // COMPONENTS_SIGNIN_CORE_COMMON_PROFILE_MANAGEMENT_SWITCHES_H_
OLDNEW
« no previous file with comments | « components/signin/core/common/BUILD.gn ('k') | components/signin/core/common/profile_management_switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698