Avi Drissman | 8ba1bad | 2022-09-13 19:22:36 | [diff] [blame] | 1 | # Copyright 2015 The Chromium Authors |
blundell | 7282b51 | 2015-11-09 07:21:11 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
Yuta Hijikata | 62dbeaf | 2020-12-10 04:15:51 | [diff] [blame] | 5 | import("//build/config/chromeos/ui_mode.gni") |
blundell | 7282b51 | 2015-11-09 07:21:11 | [diff] [blame] | 6 | import("//build/config/features.gni") |
Duong Dac | 4a336d3 | 2023-07-26 14:24:14 | [diff] [blame] | 7 | import("//components/supervised_user/buildflags.gni") |
blundell | 7282b51 | 2015-11-09 07:21:11 | [diff] [blame] | 8 | |
maxbogue | 26f4022 | 2016-09-16 20:22:18 | [diff] [blame] | 9 | static_library("browser_sync") { |
blundell | 7282b51 | 2015-11-09 07:21:11 | [diff] [blame] | 10 | sources = [ |
Rushan Suleymanov | 22f80fd | 2020-11-12 18:58:08 | [diff] [blame] | 11 | "active_devices_provider_impl.cc", |
| 12 | "active_devices_provider_impl.h", |
Mikel Astiz | 83b9663 | 2019-02-11 10:25:17 | [diff] [blame] | 13 | "browser_sync_client.h", |
maxbogue | a1d97b7c | 2015-11-12 19:41:48 | [diff] [blame] | 14 | "signin_confirmation_helper.cc", |
| 15 | "signin_confirmation_helper.h", |
Victor Hugo Vianna Silva | c758716 | 2022-01-19 17:12:00 | [diff] [blame] | 16 | "sync_api_component_factory_impl.cc", |
| 17 | "sync_api_component_factory_impl.h", |
Ankush Singh | a8cf2d2f | 2023-08-30 20:33:31 | [diff] [blame] | 18 | "sync_client_utils.cc", |
| 19 | "sync_client_utils.h", |
Marc Treib | 5a698f0 | 2023-11-03 15:02:37 | [diff] [blame] | 20 | "sync_to_signin_migration.cc", |
| 21 | "sync_to_signin_migration.h", |
blundell | 7282b51 | 2015-11-09 07:21:11 | [diff] [blame] | 22 | ] |
| 23 | |
Marc Treib | 6c0802fa | 2023-12-13 12:19:26 | [diff] [blame] | 24 | public_deps = [ |
| 25 | ":switches", |
| 26 | "//components/sync", |
| 27 | ] |
msramek | 37f7b75b | 2016-03-17 15:15:56 | [diff] [blame] | 28 | |
blundell | 7282b51 | 2015-11-09 07:21:11 | [diff] [blame] | 29 | deps = [ |
| 30 | "//base", |
Yuta Hijikata | 62dbeaf | 2020-12-10 04:15:51 | [diff] [blame] | 31 | "//build:chromeos_buildflags", |
zea | ead1f43 | 2015-11-18 02:29:51 | [diff] [blame] | 32 | "//components/autofill/core/browser", |
brettw | 15764b1 | 2015-11-30 22:11:05 | [diff] [blame] | 33 | "//components/autofill/core/common", |
Ankush Singh | 05d8b39e | 2023-09-08 13:13:35 | [diff] [blame] | 34 | "//components/bookmarks/browser", |
David Maunder | 7d51916 | 2024-03-19 19:03:13 | [diff] [blame] | 35 | "//components/commerce/core:feature_list", |
| 36 | "//components/commerce/core/product_specifications:product_specifications", |
Maksim Moskvitin | 8eee4de6 | 2024-04-25 17:15:36 | [diff] [blame^] | 37 | "//components/data_sharing/public", |
blundell | 7282b51 | 2015-11-09 07:21:11 | [diff] [blame] | 38 | "//components/history/core/browser", |
Victor Hugo Vianna Silva | bdedada | 2021-06-08 23:50:00 | [diff] [blame] | 39 | "//components/history/core/common", |
maxbogue | be7410fa | 2015-12-10 20:42:58 | [diff] [blame] | 40 | "//components/password_manager/core/browser", |
Viktor Semeniuk | b6b4471 | 2023-09-20 16:29:39 | [diff] [blame] | 41 | "//components/password_manager/core/browser/sharing", |
Florian Leimgruber | 8a47386 | 2024-04-08 13:24:55 | [diff] [blame] | 42 | "//components/plus_addresses:features", |
Florian Leimgruber | 2e5ea39 | 2024-03-13 09:42:10 | [diff] [blame] | 43 | "//components/plus_addresses/webdata", |
Brandon Wylie | 14088933 | 2023-01-26 21:36:25 | [diff] [blame] | 44 | "//components/power_bookmarks/core", |
| 45 | "//components/power_bookmarks/core:features", |
brettw | 9f7802a2 | 2016-01-30 06:40:17 | [diff] [blame] | 46 | "//components/prefs", |
Mikel Astiz | 92e4f32d | 2022-12-20 11:16:12 | [diff] [blame] | 47 | "//components/reading_list/core", |
pnoland | 4d8a7c1 | 2017-06-13 00:52:09 | [diff] [blame] | 48 | "//components/reading_list/features:flags", |
Jeffrey Cohen | 13ad66012 | 2019-03-22 16:50:00 | [diff] [blame] | 49 | "//components/send_tab_to_self", |
Duong Dac | 4a336d3 | 2023-07-26 14:24:14 | [diff] [blame] | 50 | "//components/supervised_user/core/common:buildflags", |
Rushan Suleymanov | d5c5ef5 | 2020-07-30 13:07:24 | [diff] [blame] | 51 | "//components/sync/invalidations", |
zea | ead1f43 | 2015-11-18 02:29:51 | [diff] [blame] | 52 | "//components/sync_bookmarks", |
Mikel Astiz | de2a099 | 2020-10-13 13:45:09 | [diff] [blame] | 53 | "//components/sync_preferences", |
blundell | 7282b51 | 2015-11-09 07:21:11 | [diff] [blame] | 54 | "//components/sync_sessions", |
Marc Treib | 907456e | 2019-05-06 10:07:30 | [diff] [blame] | 55 | "//components/sync_user_events", |
Ankush Singh | 52977e27 | 2023-09-11 20:16:02 | [diff] [blame] | 56 | "//components/url_formatter", |
blundell | 7282b51 | 2015-11-09 07:21:11 | [diff] [blame] | 57 | "//components/version_info", |
blundell | f1cfb03 | 2015-11-16 18:22:30 | [diff] [blame] | 58 | "//components/version_info:generate_version_info", |
Victor Hugo Vianna Silva | 7177b37 | 2023-12-12 10:36:19 | [diff] [blame] | 59 | "//components/webauthn/core/browser", |
Ankush Singh | 52977e27 | 2023-09-11 20:16:02 | [diff] [blame] | 60 | "//ui/base", |
blundell | 7282b51 | 2015-11-09 07:21:11 | [diff] [blame] | 61 | ] |
James Cook | 0a43dab51 | 2019-10-16 08:27:01 | [diff] [blame] | 62 | |
Yuta Hijikata | 62dbeaf | 2020-12-10 04:15:51 | [diff] [blame] | 63 | if (is_chromeos_ash) { |
avynn | d047027 | 2021-07-02 20:44:06 | [diff] [blame] | 64 | deps += [ |
| 65 | "//ash/constants", |
| 66 | "//components/desks_storage", |
| 67 | ] |
James Cook | 0a43dab51 | 2019-10-16 08:27:01 | [diff] [blame] | 68 | } |
Duong Dac | 4a336d3 | 2023-07-26 14:24:14 | [diff] [blame] | 69 | |
| 70 | if (enable_supervised_users) { |
| 71 | deps += [ "//components/supervised_user/core/browser" ] |
| 72 | } |
blundell | 7282b51 | 2015-11-09 07:21:11 | [diff] [blame] | 73 | } |
blundell | fe70cb4 | 2015-12-09 10:40:08 | [diff] [blame] | 74 | |
Marc Treib | 6c0802fa | 2023-12-13 12:19:26 | [diff] [blame] | 75 | static_library("switches") { |
| 76 | sources = [ |
| 77 | "browser_sync_switches.cc", |
| 78 | "browser_sync_switches.h", |
| 79 | ] |
| 80 | |
| 81 | deps = [ "//base" ] |
| 82 | } |
| 83 | |
blundell | fe70cb4 | 2015-12-09 10:40:08 | [diff] [blame] | 84 | source_set("unit_tests") { |
| 85 | testonly = true |
| 86 | |
Ankush Singh | fcbd6b1 | 2023-09-08 11:10:11 | [diff] [blame] | 87 | sources = [ |
| 88 | "active_devices_provider_impl_unittest.cc", |
| 89 | "sync_client_utils_unittest.cc", |
Marc Treib | 5a698f0 | 2023-11-03 15:02:37 | [diff] [blame] | 90 | "sync_to_signin_migration_unittest.cc", |
Ankush Singh | fcbd6b1 | 2023-09-08 11:10:11 | [diff] [blame] | 91 | ] |
blundell | fe70cb4 | 2015-12-09 10:40:08 | [diff] [blame] | 92 | |
| 93 | deps = [ |
maxbogue | 26f4022 | 2016-09-16 20:22:18 | [diff] [blame] | 94 | ":browser_sync", |
blundell | fe70cb4 | 2015-12-09 10:40:08 | [diff] [blame] | 95 | "//base", |
| 96 | "//base/test:test_support", |
vabr | 7e9f0b97 | 2016-02-19 17:24:22 | [diff] [blame] | 97 | "//components/autofill/core/browser:test_support", |
Marc Treib | 95af8b12 | 2018-10-18 12:53:57 | [diff] [blame] | 98 | "//components/autofill/core/common", |
| 99 | "//components/bookmarks/browser", |
| 100 | "//components/bookmarks/managed", |
| 101 | "//components/bookmarks/test", |
| 102 | "//components/history/core/browser", |
Ankush Singh | fcbd6b1 | 2023-09-08 11:10:11 | [diff] [blame] | 103 | "//components/password_manager/core/browser:test_support", |
vabr | 835470b3 | 2016-02-03 17:44:57 | [diff] [blame] | 104 | "//components/prefs", |
Marc Treib | 5a698f0 | 2023-11-03 15:02:37 | [diff] [blame] | 105 | "//components/prefs:test_support", |
Ankush Singh | d95af803 | 2023-09-08 17:19:40 | [diff] [blame] | 106 | "//components/reading_list/core:test_support", |
Marc Treib | 5a698f0 | 2023-11-03 15:02:37 | [diff] [blame] | 107 | "//components/signin/public/identity_manager", |
maxbogue | 455a57e3 | 2016-08-14 00:08:32 | [diff] [blame] | 108 | "//components/sync", |
Marc Treib | e4c166c | 2019-04-25 09:55:25 | [diff] [blame] | 109 | "//components/sync:test_support", |
Marc Treib | 95af8b12 | 2018-10-18 12:53:57 | [diff] [blame] | 110 | "//components/sync_bookmarks", |
Marc Treib | b55b67a | 2019-05-07 14:37:39 | [diff] [blame] | 111 | "//components/sync_device_info", |
Rushan Suleymanov | 22f80fd | 2020-11-12 18:58:08 | [diff] [blame] | 112 | "//components/sync_device_info:test_support", |
Mikel Astiz | 8c96a266 | 2023-10-26 16:59:55 | [diff] [blame] | 113 | "//components/undo", |
blundell | fe70cb4 | 2015-12-09 10:40:08 | [diff] [blame] | 114 | "//components/version_info", |
| 115 | "//components/version_info:generate_version_info", |
Colin Blundell | cdd0e274 | 2018-11-07 15:21:57 | [diff] [blame] | 116 | "//components/webdata/common", |
Mark Pilgrim | 215ccf9 | 2018-06-11 22:32:19 | [diff] [blame] | 117 | "//services/network:test_support", |
blundell | fe70cb4 | 2015-12-09 10:40:08 | [diff] [blame] | 118 | "//testing/gmock", |
| 119 | "//testing/gtest", |
blundell | fe70cb4 | 2015-12-09 10:40:08 | [diff] [blame] | 120 | ] |
| 121 | } |