0
Files
android_webview
apps
ash
base
build
build_overrides
buildtools
cc
chrome
chromecast
chromeos
cloud_print
codelabs
components
about_ui
account_id
account_manager_core
accuracy_tips
android_autofill
android_system_error_page
apdu
arc
arc_strings_grdp
assist_ranker
autofill
autofill_assistant
autofill_assistant_strings_grdp
autofill_payments_strings_grdp
autofill_strings_grdp
back_forward_cache
background_fetch
background_sync
background_task_scheduler
base32
blocked_content
blocklist
bookmark_bar_strings_grdp
bookmark_component_strings_grdp
bookmarks
breadcrumbs
browser_sync
BUILD.gn
DEPS
DIR_METADATA
OWNERS
PRESUBMIT.py
active_devices_provider_impl.cc
active_devices_provider_impl.h
active_devices_provider_impl_unittest.cc
browser_sync_client.h
browser_sync_switches.cc
browser_sync_switches.h
profile_sync_components_factory_impl.cc
profile_sync_components_factory_impl.h
signin_confirmation_helper.cc
signin_confirmation_helper.h
browser_ui
browser_watcher
browsing_data
browsing_data_strings_grdp
captive_portal
cast
cast_certificate
cast_channel
cast_streaming
cbor
cdm
certificate_matching
certificate_transparency
chrome_cleaner
chromeos_camera
client_hints
client_update_protocol
cloud_devices
commerce
component_updater
components_chromium_strings_grd
components_google_chrome_strings_grd
components_strings_grd
consent_auditor
constrained_window
content_capture
content_creation
content_creation_strings_grdp
content_settings
contextual_search
continuous_search
cookie_config
country_codes
crash
crash_strings_grdp
cronet
crx_file
data_reduction_proxy
data_use_measurement
database_utils
dbus
desks_storage
device_event_log
device_reauth
digital_asset_links
discardable_memory
dom_distiller
dom_distiller_strings_grdp
domain_reliability
download
drive
embedder_support
encrypted_messages
enterprise
error_page
error_page_strings_grdp
exo
external_intents
externalauth
favicon
favicon_base
feature_engagement
federated_learning
feed
feedback
filename_generation
find_in_page
flags_ui
full_restore
fullscreen_control
fullscreen_control_strings_grdp
gcm_driver
google
grpc_support
guest_os
guest_view
gwp_asan
handoff
heap_profiling
heavy_ad_intervention
heavy_ad_intervention_strings_grdp
history
history_clusters
history_strings_grdp
image_fetcher
infobars
installedapp
invalidation
javascript_dialogs
javascript_dialogs_strings_grdp
js_injection
keep_alive_registry
keyed_service
language
lens
leveldb_proto
link_header_util
live_caption
live_caption_strings_grdp
location
login
lookalikes
management
management_ios_strings_grdp
management_strings_grdp
media_control
media_message_center
media_router
messages
metal_util
metrics
metrics_services_manager
minidump_uploader
mirroring
module_installer
nacl
navigation_interception
navigation_metrics
net_log
neterror
network_hints
network_session_configurator
network_time
new_or_sad_tab_strings_grdp
no_state_prefetch
ntp_snippets
ntp_snippets_strings_grdp
ntp_tiles
offline_items_collection
offline_pages
omnibox
omnibox_strings_grdp
on_load_script_injector
onc
open_from_clipboard
openscreen_platform
optimization_guide
os_crypt
ownership
page_image_annotation
page_info
page_info_strings_grdp
page_load_metrics
paint_preview
password_manager
password_manager_strings_grdp
payments
payments_strings_grdp
pdf
pdf_strings_grdp
performance_manager
permissions
permissions_strings_grdp
plugins
policy
policy_strings_grdp
power_scheduler
pref_registry
prefs
previous_session_info
printing
printing_component_strings_grdp
privacy_sandbox
privacy_sandbox_strings_grdp
profile_metrics
proxy_config
pwg_encoder
qr_code_generator
query_parser
query_tiles
quirks
reading_list
remote_cocoa
renderer_context_menu
reporting
reputation
reset_password_strings_grdp
resources
rlz
safe_browsing
safe_search_api
safety_check
scheduling_metrics
schema_org
search
search_engines
search_provider_logos
security_interstitials
security_interstitials_strings_grdp
security_state
security_state_strings_grdp
segmentation_platform
send_tab_to_self
send_tab_to_self_strings_grdp
services
session_manager
sessions
shared_highlighting
signin
site_engagement
site_isolation
sms_strings_grdp
soda
soda_strings_grdp
speech
spellcheck
sqlite_proto
ssl_errors
ssl_errors_strings_grdp
startup_metric_utils
storage_monitor
strictmode
strings
subresource_filter
subresource_redirect
sync
sync_bookmarks
sync_device_info
sync_preferences
sync_sessions
sync_ui_strings_grdp
sync_user_events
system_media_controls
tab_count_metrics
tab_groups
tab_groups_strings_grdp
test
thin_webview
tracing
translate
translate_strings_grdp
ui_devtools
ui_metrics
ukm
undo
undo_strings_grdp
unified_consent
update_client
upload_list
url_formatter
url_matcher
url_pattern_index
user_actions_ui
user_manager
user_prefs
variations
vector_icons
version_info
version_ui
version_ui_strings_grdp
visitedlink
viz
web_cache
web_modal
web_package
web_resource
webapk
webapps
webauthn
webcrypto
webdata
webdata_services
webrtc
webrtc_logging
webxr
webxr_strings_grdp
wifi
zoom
zucchini
.eslintrc.js
BUILD.gn
DEPS
OWNERS
PRESUBMIT.py
README.md
android_system_error_page_strings.grdp
arc_strings.grdp
autofill_assistant_strings.grdp
autofill_payments_strings.grdp
autofill_strings.grdp
blocked_content_strings.grdp
bookmark_bar_strings.grdp
bookmark_component_strings.grdp
browsing_data_strings.grdp
components_chromium_strings.grd
components_google_chrome_strings.grd
components_locale_settings.grd
components_settings_strings.grdp
components_strings.grd
content_creation_strings.grdp
crash_strings.grdp
dialog_strings.grdp
dom_distiller_strings.grdp
error_page_strings.grdp
find_in_page_strings.grdp
flags_strings.grdp
fullscreen_control_strings.grdp
heavy_ad_intervention_strings.grdp
history_clusters_strings.grdp
history_strings.grdp
javascript_dialogs_strings.grdp
live_caption_strings.grdp
login_dialog_strings.grdp
management_ios_strings.grdp
management_strings.grdp
media_message_center_strings.grdp
new_or_sad_tab_strings.grdp
ntp_snippets_strings.grdp
omnibox_strings.grdp
page_info_strings.grdp
paint_preview_strings.grdp
password_manager_strings.grdp
payments_strings.grdp
pdf_strings.grdp
permissions_strings.grdp
policy_strings.grdp
print_media_strings.grdp
printing_component_strings.grdp
privacy_sandbox_strings.grdp
reset_password_strings.grdp
safe_browsing_strings.grdp
security_interstitials_strings.grdp
security_state_strings.grdp
send_tab_to_self_strings.grdp
sms_strings.grdp
soda_strings.grdp
ssl_errors_strings.grdp
subresource_filter_strings.grdp
sync_ui_strings.grdp
tab_groups_strings.grdp
translate_strings.grdp
undo_strings.grdp
version_ui_strings.grdp
webapps_strings.grdp
webxr_strings.grdp
content
courgette
crypto
dbus
device
docs
extensions
fuchsia
gin
google_apis
google_update
gpu
headless
infra
ios
ipc
jingle
media
mojo
native_client_sdk
net
pdf
ppapi
printing
remoting
rlz
sandbox
services
skia
sql
storage
styleguide
testing
third_party
tools
ui
url
weblayer
.clang-format
.clang-tidy
.eslintrc.js
.git-blame-ignore-revs
.gitattributes
.gitignore
.gn
.mailmap
.vpython
.vpython3
.yapfignore
AUTHORS
BUILD.gn
CODE_OF_CONDUCT.md
DEPS
DIR_METADATA
ENG_REVIEW_OWNERS
LICENSE
LICENSE.chromium_os
OWNERS
PRESUBMIT.py
PRESUBMIT_test.py
PRESUBMIT_test_mocks.py
README.md
WATCHLISTS
codereview.settings
src/components/browser_sync/browser_sync_switches.h
Rushan Suleymanov 84323d05a9 [Sync] Set single_client flag based on committed data types
This CL extends single_client optimization flag (used for invalidations)
to consider current device as single if other devices are not interested
in the committed data types.

Bug: 1228714
Change-Id: I78782d75b208ffcc51ea8599347c4ac96a75038d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3024128
Commit-Queue: Rushan Suleymanov <rushans@google.com>
Reviewed-by: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#901937}
2021-07-15 14:23:49 +00:00

31 lines
1.0 KiB
C++

// 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.
#ifndef COMPONENTS_BROWSER_SYNC_BROWSER_SYNC_SWITCHES_H_
#define COMPONENTS_BROWSER_SYNC_BROWSER_SYNC_SWITCHES_H_
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "build/build_config.h"
namespace switches {
extern const char kDisableSyncTypes[];
extern const char kEnableLocalSyncBackend[];
extern const char kLocalSyncBackendDir[];
#if defined(OS_ANDROID)
extern const base::Feature kSyncUseSessionsUnregisterDelay;
#endif
// Sync invalidation switches.
extern const base::Feature kSyncUseFCMRegistrationTokensList;
extern const base::FeatureParam<int> kSyncFCMRegistrationTokensListMaxSize;
extern const base::Feature kSyncFilterOutInactiveDevicesForSingleClient;
extern const base::FeatureParam<base::TimeDelta> kSyncActiveDeviceMargin;
} // namespace switches
#endif // COMPONENTS_BROWSER_SYNC_BROWSER_SYNC_SWITCHES_H_