OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
| 5 import("//build/buildflag_header.gni") |
5 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
6 | 7 |
7 source_set("sync_driver") { | 8 source_set("sync_driver") { |
8 sources = [ | 9 sources = [ |
9 "about_sync_util.cc", | 10 "about_sync_util.cc", |
10 "about_sync_util.h", | 11 "about_sync_util.h", |
11 "backend_data_type_configurer.cc", | 12 "backend_data_type_configurer.cc", |
12 "backend_data_type_configurer.h", | 13 "backend_data_type_configurer.h", |
13 "backend_migrator.cc", | 14 "backend_migrator.cc", |
14 "backend_migrator.h", | 15 "backend_migrator.h", |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 "sync_type_preference_provider.h", | 114 "sync_type_preference_provider.h", |
114 "sync_util.cc", | 115 "sync_util.cc", |
115 "sync_util.h", | 116 "sync_util.h", |
116 "system_encryptor.cc", | 117 "system_encryptor.cc", |
117 "system_encryptor.h", | 118 "system_encryptor.h", |
118 "ui_data_type_controller.cc", | 119 "ui_data_type_controller.cc", |
119 "ui_data_type_controller.h", | 120 "ui_data_type_controller.h", |
120 "user_selectable_sync_type.h", | 121 "user_selectable_sync_type.h", |
121 ] | 122 ] |
122 | 123 |
| 124 public_deps = [ |
| 125 ":features", |
| 126 ] |
123 deps = [ | 127 deps = [ |
124 "//base", | 128 "//base", |
125 "//base:prefs", | 129 "//base:prefs", |
126 "//base/third_party/dynamic_annotations", | 130 "//base/third_party/dynamic_annotations", |
127 "//components/data_use_measurement/core", | 131 "//components/data_use_measurement/core", |
128 "//components/invalidation/public", | 132 "//components/invalidation/public", |
129 "//components/os_crypt", | 133 "//components/os_crypt", |
130 "//components/pref_registry", | 134 "//components/pref_registry", |
131 "//components/signin/core/browser", | 135 "//components/signin/core/browser", |
132 "//components/version_info", | 136 "//components/version_info", |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 ] | 247 ] |
244 | 248 |
245 if (enable_configuration_policy) { | 249 if (enable_configuration_policy) { |
246 sources += [ "sync_policy_handler_unittest.cc" ] | 250 sources += [ "sync_policy_handler_unittest.cc" ] |
247 deps += [ | 251 deps += [ |
248 "//components/policy", | 252 "//components/policy", |
249 "//components/policy:policy_component", | 253 "//components/policy:policy_component", |
250 ] | 254 ] |
251 } | 255 } |
252 } | 256 } |
| 257 |
| 258 buildflag_header("features") { |
| 259 header = "sync_driver_features.h" |
| 260 |
| 261 # Whether to back up data before sync. |
| 262 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos) |
| 263 |
| 264 flags = [ "ENABLE_PRE_SYNC_BACKUP=$enable_pre_sync_backup" ] |
| 265 } |
OLD | NEW |