Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: components/sync_driver/BUILD.gn

Issue 1490713002: Revert of Convert enable_pre_sync_backup flag to new flags system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/sync_driver.gypi ('k') | components/sync_driver/backup_rollback_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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")
6 import("//build/config/features.gni") 5 import("//build/config/features.gni")
7 6
8 source_set("sync_driver") { 7 source_set("sync_driver") {
9 sources = [ 8 sources = [
10 "about_sync_util.cc", 9 "about_sync_util.cc",
11 "about_sync_util.h", 10 "about_sync_util.h",
12 "backend_data_type_configurer.cc", 11 "backend_data_type_configurer.cc",
13 "backend_data_type_configurer.h", 12 "backend_data_type_configurer.h",
14 "backend_migrator.cc", 13 "backend_migrator.cc",
15 "backend_migrator.h", 14 "backend_migrator.h",
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 "sync_type_preference_provider.h", 113 "sync_type_preference_provider.h",
115 "sync_util.cc", 114 "sync_util.cc",
116 "sync_util.h", 115 "sync_util.h",
117 "system_encryptor.cc", 116 "system_encryptor.cc",
118 "system_encryptor.h", 117 "system_encryptor.h",
119 "ui_data_type_controller.cc", 118 "ui_data_type_controller.cc",
120 "ui_data_type_controller.h", 119 "ui_data_type_controller.h",
121 "user_selectable_sync_type.h", 120 "user_selectable_sync_type.h",
122 ] 121 ]
123 122
124 public_deps = [
125 ":features",
126 ]
127 deps = [ 123 deps = [
128 "//base", 124 "//base",
129 "//base:prefs", 125 "//base:prefs",
130 "//base/third_party/dynamic_annotations", 126 "//base/third_party/dynamic_annotations",
131 "//components/data_use_measurement/core", 127 "//components/data_use_measurement/core",
132 "//components/invalidation/public", 128 "//components/invalidation/public",
133 "//components/os_crypt", 129 "//components/os_crypt",
134 "//components/pref_registry", 130 "//components/pref_registry",
135 "//components/signin/core/browser", 131 "//components/signin/core/browser",
136 "//components/version_info", 132 "//components/version_info",
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 ] 243 ]
248 244
249 if (enable_configuration_policy) { 245 if (enable_configuration_policy) {
250 sources += [ "sync_policy_handler_unittest.cc" ] 246 sources += [ "sync_policy_handler_unittest.cc" ]
251 deps += [ 247 deps += [
252 "//components/policy", 248 "//components/policy",
253 "//components/policy:policy_component", 249 "//components/policy:policy_component",
254 ] 250 ]
255 } 251 }
256 } 252 }
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 }
OLDNEW
« no previous file with comments | « components/sync_driver.gypi ('k') | components/sync_driver/backup_rollback_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698