1 // Copyright 2018 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "components/sync/base/sync_base_switches.h"
6 
7 namespace switches {
8 
9 // Overrides the default server used for profile sync.
10 const char kSyncServiceURL[] = "sync-url";
11 
12 // Specifies the vault server used for trusted vault passphrase.
13 const char kTrustedVaultServiceURL[] = "trusted-vault-service-url";
14 
15 const base::Feature kSyncNigoriRemoveMetadataOnCacheGuidMismatch{
16     "SyncNigoriRemoveMetadataOnCacheGuidMismatch",
17     base::FEATURE_ENABLED_BY_DEFAULT};
18 
19 // Force disables scrypt key derivation for custom passphrase. If this feature
20 // is enabled, scrypt will be considered as an unsupported method, and Chrome
21 // will not be able to access data encrypted using scrypt-derived keys (valid
22 // passphrases will be rejected).
23 const base::Feature kSyncForceDisableScryptForCustomPassphrase{
24     "SyncForceDisableScryptForCustomPassphrase",
25     base::FEATURE_DISABLED_BY_DEFAULT};
26 
27 const base::Feature kSyncE2ELatencyMeasurement = {
28     "SyncE2ELatencyMeasurement", base::FEATURE_DISABLED_BY_DEFAULT};
29 
30 const base::Feature kSyncCustomSharingMessageNudgeDelay = {
31     "SyncCustomSharingMessageNudgeDelay", base::FEATURE_ENABLED_BY_DEFAULT};
32 const base::FeatureParam<int> kSyncSharingMessageNudgeDelayMilliseconds{
33     &kSyncCustomSharingMessageNudgeDelay,
34     "SyncSharingMessageNudgeDelayMilliseconds", 50};
35 
36 // Enable resend of entities after failed commit. This feature toggle enables
37 // state resetting of all entities in transient state.
38 // TODO(crbug.com/1137817): Remove the feature toggle when it hits Stable.
39 const base::Feature kSyncResetEntitiesStateOnCommitFailure = {
40     "SyncResetEntitiesStateOnCommitFailure", base::FEATURE_ENABLED_BY_DEFAULT};
41 
42 }  // namespace switches
43