blob: c6d3c08ced9def304fc46e85b78e34dbb74bd5a9 [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361# Copyright 2015 The Chromium Authors
blundell7282b512015-11-09 07:21:112# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Yuta Hijikata62dbeaf2020-12-10 04:15:515import("//build/config/chromeos/ui_mode.gni")
blundell7282b512015-11-09 07:21:116import("//build/config/features.gni")
Duong Dac4a336d32023-07-26 14:24:147import("//components/supervised_user/buildflags.gni")
blundell7282b512015-11-09 07:21:118
maxbogue26f40222016-09-16 20:22:189static_library("browser_sync") {
blundell7282b512015-11-09 07:21:1110 sources = [
Rushan Suleymanov22f80fd2020-11-12 18:58:0811 "active_devices_provider_impl.cc",
12 "active_devices_provider_impl.h",
Mikel Astiz83b96632019-02-11 10:25:1713 "browser_sync_client.h",
maxboguea1d97b7c2015-11-12 19:41:4814 "signin_confirmation_helper.cc",
15 "signin_confirmation_helper.h",
Victor Hugo Vianna Silvac7587162022-01-19 17:12:0016 "sync_api_component_factory_impl.cc",
17 "sync_api_component_factory_impl.h",
Ankush Singha8cf2d2f2023-08-30 20:33:3118 "sync_client_utils.cc",
19 "sync_client_utils.h",
Marc Treib5a698f02023-11-03 15:02:3720 "sync_to_signin_migration.cc",
21 "sync_to_signin_migration.h",
blundell7282b512015-11-09 07:21:1122 ]
23
Marc Treib6c0802fa2023-12-13 12:19:2624 public_deps = [
25 ":switches",
26 "//components/sync",
27 ]
msramek37f7b75b2016-03-17 15:15:5628
blundell7282b512015-11-09 07:21:1129 deps = [
30 "//base",
Yuta Hijikata62dbeaf2020-12-10 04:15:5131 "//build:chromeos_buildflags",
zeaead1f432015-11-18 02:29:5132 "//components/autofill/core/browser",
brettw15764b12015-11-30 22:11:0533 "//components/autofill/core/common",
Ankush Singh05d8b39e2023-09-08 13:13:3534 "//components/bookmarks/browser",
David Maunder7d519162024-03-19 19:03:1335 "//components/commerce/core:feature_list",
36 "//components/commerce/core/product_specifications:product_specifications",
Maksim Moskvitin8eee4de62024-04-25 17:15:3637 "//components/data_sharing/public",
blundell7282b512015-11-09 07:21:1138 "//components/history/core/browser",
Victor Hugo Vianna Silvabdedada2021-06-08 23:50:0039 "//components/history/core/common",
maxboguebe7410fa2015-12-10 20:42:5840 "//components/password_manager/core/browser",
Viktor Semeniukb6b44712023-09-20 16:29:3941 "//components/password_manager/core/browser/sharing",
Florian Leimgruber8a473862024-04-08 13:24:5542 "//components/plus_addresses:features",
Florian Leimgruber2e5ea392024-03-13 09:42:1043 "//components/plus_addresses/webdata",
Brandon Wylie140889332023-01-26 21:36:2544 "//components/power_bookmarks/core",
45 "//components/power_bookmarks/core:features",
brettw9f7802a22016-01-30 06:40:1746 "//components/prefs",
Mikel Astiz92e4f32d2022-12-20 11:16:1247 "//components/reading_list/core",
pnoland4d8a7c12017-06-13 00:52:0948 "//components/reading_list/features:flags",
Jeffrey Cohen13ad660122019-03-22 16:50:0049 "//components/send_tab_to_self",
Duong Dac4a336d32023-07-26 14:24:1450 "//components/supervised_user/core/common:buildflags",
Rushan Suleymanovd5c5ef52020-07-30 13:07:2451 "//components/sync/invalidations",
zeaead1f432015-11-18 02:29:5152 "//components/sync_bookmarks",
Mikel Astizde2a0992020-10-13 13:45:0953 "//components/sync_preferences",
blundell7282b512015-11-09 07:21:1154 "//components/sync_sessions",
Marc Treib907456e2019-05-06 10:07:3055 "//components/sync_user_events",
Ankush Singh52977e272023-09-11 20:16:0256 "//components/url_formatter",
blundell7282b512015-11-09 07:21:1157 "//components/version_info",
blundellf1cfb032015-11-16 18:22:3058 "//components/version_info:generate_version_info",
Victor Hugo Vianna Silva7177b372023-12-12 10:36:1959 "//components/webauthn/core/browser",
Ankush Singh52977e272023-09-11 20:16:0260 "//ui/base",
blundell7282b512015-11-09 07:21:1161 ]
James Cook0a43dab512019-10-16 08:27:0162
Yuta Hijikata62dbeaf2020-12-10 04:15:5163 if (is_chromeos_ash) {
avynnd0470272021-07-02 20:44:0664 deps += [
65 "//ash/constants",
66 "//components/desks_storage",
67 ]
James Cook0a43dab512019-10-16 08:27:0168 }
Duong Dac4a336d32023-07-26 14:24:1469
70 if (enable_supervised_users) {
71 deps += [ "//components/supervised_user/core/browser" ]
72 }
blundell7282b512015-11-09 07:21:1173}
blundellfe70cb42015-12-09 10:40:0874
Marc Treib6c0802fa2023-12-13 12:19:2675static_library("switches") {
76 sources = [
77 "browser_sync_switches.cc",
78 "browser_sync_switches.h",
79 ]
80
81 deps = [ "//base" ]
82}
83
blundellfe70cb42015-12-09 10:40:0884source_set("unit_tests") {
85 testonly = true
86
Ankush Singhfcbd6b12023-09-08 11:10:1187 sources = [
88 "active_devices_provider_impl_unittest.cc",
89 "sync_client_utils_unittest.cc",
Marc Treib5a698f02023-11-03 15:02:3790 "sync_to_signin_migration_unittest.cc",
Ankush Singhfcbd6b12023-09-08 11:10:1191 ]
blundellfe70cb42015-12-09 10:40:0892
93 deps = [
maxbogue26f40222016-09-16 20:22:1894 ":browser_sync",
blundellfe70cb42015-12-09 10:40:0895 "//base",
96 "//base/test:test_support",
vabr7e9f0b972016-02-19 17:24:2297 "//components/autofill/core/browser:test_support",
Marc Treib95af8b122018-10-18 12:53:5798 "//components/autofill/core/common",
99 "//components/bookmarks/browser",
100 "//components/bookmarks/managed",
101 "//components/bookmarks/test",
102 "//components/history/core/browser",
Ankush Singhfcbd6b12023-09-08 11:10:11103 "//components/password_manager/core/browser:test_support",
vabr835470b32016-02-03 17:44:57104 "//components/prefs",
Marc Treib5a698f02023-11-03 15:02:37105 "//components/prefs:test_support",
Ankush Singhd95af8032023-09-08 17:19:40106 "//components/reading_list/core:test_support",
Marc Treib5a698f02023-11-03 15:02:37107 "//components/signin/public/identity_manager",
maxbogue455a57e32016-08-14 00:08:32108 "//components/sync",
Marc Treibe4c166c2019-04-25 09:55:25109 "//components/sync:test_support",
Marc Treib95af8b122018-10-18 12:53:57110 "//components/sync_bookmarks",
Marc Treibb55b67a2019-05-07 14:37:39111 "//components/sync_device_info",
Rushan Suleymanov22f80fd2020-11-12 18:58:08112 "//components/sync_device_info:test_support",
Mikel Astiz8c96a2662023-10-26 16:59:55113 "//components/undo",
blundellfe70cb42015-12-09 10:40:08114 "//components/version_info",
115 "//components/version_info:generate_version_info",
Colin Blundellcdd0e2742018-11-07 15:21:57116 "//components/webdata/common",
Mark Pilgrim215ccf92018-06-11 22:32:19117 "//services/network:test_support",
blundellfe70cb42015-12-09 10:40:08118 "//testing/gmock",
119 "//testing/gtest",
blundellfe70cb42015-12-09 10:40:08120 ]
121}