| OLD | NEW |
| 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/signin_switches.h" | 5 #include "components/signin/core/common/signin_switches.h" |
| 6 | 6 |
| 7 namespace switches { | 7 namespace switches { |
| 8 | 8 |
| 9 // Clears the token service before using it. This allows simulating the | 9 // Clears the token service before using it. This allows simulating the |
| 10 // expiration of credentials during testing. | 10 // expiration of credentials during testing. |
| 11 const char kClearTokenService[] = "clear-token-service"; | 11 const char kClearTokenService[] = "clear-token-service"; |
| 12 | 12 |
| 13 // Disables sign-in promo. | 13 // Disables sign-in promo. |
| 14 const char kDisableSigninPromo[] = "disable-signin-promo"; | 14 const char kDisableSigninPromo[] = "disable-signin-promo"; |
| 15 | 15 |
| 16 // Disables sending signin scoped device id to LSO with refresh token request. | 16 // Disables sending signin scoped device id to LSO with refresh token request. |
| 17 const char kDisableSigninScopedDeviceId[] = "disable-signin-scoped-device-id"; | 17 const char kDisableSigninScopedDeviceId[] = "disable-signin-scoped-device-id"; |
| 18 | 18 |
| 19 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 19 #if !BUILDFLAG(ENABLE_MIRROR) |
| 20 // Command line flag for enabling account consistency. Default mode is disabled. | 20 // Command line flag for enabling account consistency. Default mode is disabled. |
| 21 // Mirror is a legacy mode in which Google accounts are always addded to Chrome, | 21 // Mirror is a legacy mode in which Google accounts are always addded to Chrome, |
| 22 // and Chrome then adds them to the Google authentication cookies. | 22 // and Chrome then adds them to the Google authentication cookies. |
| 23 // Dice is a new experiment in which Chrome is aware of the accounts in the | 23 // Dice is a new experiment in which Chrome is aware of the accounts in the |
| 24 // Google authentication cookies. | 24 // Google authentication cookies. |
| 25 const char kAccountConsistency[] = "account-consistency"; | 25 const char kAccountConsistency[] = "account-consistency"; |
| 26 | 26 |
| 27 // Values for the kAccountConsistency flag. | 27 // Values for the kAccountConsistency flag. |
| 28 const char kAccountConsistencyMirror[] = "mirror"; | 28 const char kAccountConsistencyMirror[] = "mirror"; |
| 29 const char kAccountConsistencyDice[] = "dice"; | 29 const char kAccountConsistencyDice[] = "dice"; |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 // Enables sending EnableRefreshTokenAnnotationRequest. | 32 // Enables sending EnableRefreshTokenAnnotationRequest. |
| 33 extern const char kEnableRefreshTokenAnnotationRequest[] = | 33 extern const char kEnableRefreshTokenAnnotationRequest[] = |
| 34 "enable-refresh-token-annotation-request"; | 34 "enable-refresh-token-annotation-request"; |
| 35 | 35 |
| 36 // Enables sign-in promo. | 36 // Enables sign-in promo. |
| 37 const char kEnableSigninPromo[] = "enable-signin-promo"; | 37 const char kEnableSigninPromo[] = "enable-signin-promo"; |
| 38 | 38 |
| 39 // Enables multiple account versions of chrome.identity APIs. | 39 // Enables multiple account versions of chrome.identity APIs. |
| 40 const char kExtensionsMultiAccount[] = "extensions-multi-account"; | 40 const char kExtensionsMultiAccount[] = "extensions-multi-account"; |
| 41 | 41 |
| 42 } // namespace switches | 42 } // namespace switches |
| OLD | NEW |