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

Unified Diff: components/user_prefs/BUILD.gn

Issue 1227973003: Componentize //chrome/browser/prefs/tracked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comments Created 5 years, 5 months 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 side-by-side diff with in-line comments
Download patch
Index: components/user_prefs/BUILD.gn
diff --git a/components/user_prefs/BUILD.gn b/components/user_prefs/BUILD.gn
index 3d777d23325f4b0e982ee9f7c927cd9782535833..5bc120095c7cfac997ed8de5085ff3be57a7ff30 100644
--- a/components/user_prefs/BUILD.gn
+++ b/components/user_prefs/BUILD.gn
@@ -16,3 +16,69 @@ component("user_prefs") {
"//base:prefs",
]
}
+
+static_library("user_prefs_tracked") {
blundell 2015/07/29 14:08:52 The structure you had with GN was correct in the p
Jitu( very slow this week) 2015/07/30 08:06:13 Ok Done
+ sources = [
+ "device_id.h",
+ "tracked/device_id_stub.cc",
+ "tracked/device_id_win.cc",
+ "tracked/dictionary_hash_store_contents.cc",
+ "tracked/dictionary_hash_store_contents.h",
+ "tracked/hash_store_contents.h",
+ "tracked/interceptable_pref_filter.cc",
+ "tracked/interceptable_pref_filter.h",
+ "tracked/pref_hash_calculator.cc",
+ "tracked/pref_hash_calculator.h",
+ "tracked/pref_hash_filter.cc",
+ "tracked/pref_hash_filter.h",
+ "tracked/pref_hash_store.h",
+ "tracked/pref_hash_store_impl.cc",
+ "tracked/pref_hash_store_impl.h",
+ "tracked/pref_hash_store_transaction.h",
+ "tracked/pref_names.cc",
+ "tracked/pref_names.h",
+ "tracked/pref_service_hash_store_contents.cc",
+ "tracked/pref_service_hash_store_contents.h",
+ "tracked/segregated_pref_store.cc",
+ "tracked/segregated_pref_store.h",
+ "tracked/tracked_atomic_preference.cc",
+ "tracked/tracked_atomic_preference.h",
+ "tracked/tracked_preference.h",
+ "tracked/tracked_preference_helper.cc",
+ "tracked/tracked_preference_helper.h",
+ "tracked/tracked_preference_validation_delegate.h",
+ "tracked/tracked_preferences_migration.cc",
+ "tracked/tracked_preferences_migration.h",
+ "tracked/tracked_split_preference.cc",
+ "tracked/tracked_split_preference.h",
+ ]
+
+ deps = [
+ "//components/pref_registry",
+ ]
+}
+
+source_set("user_prefs_tracked_test_support") {
+ testonly = true
+ sources = [
+ "tracked/mock_validation_delegate.cc",
+ "tracked/mock_validation_delegate.h",
+ ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "tracked/device_id_unittest.cc",
+ "tracked/pref_hash_calculator_unittest.cc",
+ "tracked/pref_hash_filter_unittest.cc",
+ "tracked/pref_hash_store_impl_unittest.cc",
+ "tracked/pref_service_hash_store_contents_unittest.cc",
+ "tracked/segregated_pref_store_unittest.cc",
+ "tracked/tracked_preferences_migration_unittest.cc",
+ ]
+
+ deps = [
+ ":user_prefs_tracked_test_support",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698