blob: 0ef33501988c5c88e7d2386709a4b708a2b3bf54 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/sync/driver/sync_driver_switches.h"
#include "base/command_line.h"
namespace switches {
bool IsSyncAllowedByFlag() {
return !base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableSync);
}
// Disables syncing browser data to a Google Account.
const char kDisableSync[] = "disable-sync";
// Allows overriding the deferred init fallback timeout.
const char kSyncDeferredStartupTimeoutSeconds[] =
"sync-deferred-startup-timeout-seconds";
// Enables deferring sync backend initialization until user initiated changes
// occur.
const char kSyncDisableDeferredStartup[] = "sync-disable-deferred-startup";
// Controls whether the initial state of the "Capture Specifics" flag on
// chrome://sync-internals is enabled.
const char kSyncIncludeSpecificsInProtocolLog[] = "sync-include-specifics";
// Overrides the default server used for profile sync.
const char kSyncServiceURL[] = "sync-url";
// This flag causes sync to retry very quickly (see polling_constants.h) the
// when it encounters an error, as the first step towards exponential backoff.
const char kSyncShortInitialRetryOverride[] =
"sync-short-initial-retry-override";
// This flag significantly shortens the delay between nudge cycles. Its primary
// purpose is to speed up integration tests. The normal delay allows coalescing
// and prevention of server overload, so don't use this unless you're really
// sure
// that it's what you want.
const char kSyncShortNudgeDelayForTest[] = "sync-short-nudge-delay-for-test";
// Allows custom passphrase users to receive Wallet data for secondary accounts
// while in transport-only mode.
const base::Feature kSyncAllowWalletDataInTransportModeWithCustomPassphrase{
"SyncAllowAutofillWalletDataInTransportModeWithCustomPassphrase",
base::FEATURE_ENABLED_BY_DEFAULT};
// If enabled, the sync engine will be shut down in the "paused" state.
const base::Feature kStopSyncInPausedState{"StopSyncInPausedState",
base::FEATURE_DISABLED_BY_DEFAULT};
// Controls whether a user can receive tabs from their synced devices
const base::Feature kSyncSendTabToSelf{"SyncSendTabToSelf",
base::FEATURE_ENABLED_BY_DEFAULT};
// If enabled, allows the Sync machinery to start with a signed-in account that
// has *not* been chosen as Chrome's primary account (see IdentityManager). Only
// has an effect if SyncStandaloneTransport is also enabled.
const base::Feature kSyncSupportSecondaryAccount{
"SyncSupportSecondaryAccount", base::FEATURE_DISABLED_BY_DEFAULT};
// Enable USS implementation of Bookmarks datatype.
const base::Feature kSyncUSSBookmarks{"SyncUSSBookmarks",
base::FEATURE_DISABLED_BY_DEFAULT};
// Enable USS implementation of Passwords datatype.
const base::Feature kSyncUSSPasswords{"SyncUSSPasswords",
base::FEATURE_DISABLED_BY_DEFAULT};
// Enable USS implementation of autofill wallet metadata datatype.
const base::Feature kSyncUSSAutofillWalletMetadata{
"SyncUSSAutofillWalletMetadata", base::FEATURE_DISABLED_BY_DEFAULT};
// Enable USS implementation of Nigori datatype.
const base::Feature kSyncUSSNigori{"SyncUSSNigori",
base::FEATURE_DISABLED_BY_DEFAULT};
// Controls whether to enable syncing of Wi-Fi configurations.
const base::Feature kSyncWifiConfigurations{"SyncWifiConfigurations",
base::FEATURE_DISABLED_BY_DEFAULT};
} // namespace switches