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

Unified Diff: components/task_scheduler_util/BUILD.gn

Issue 2565013002: Split browser-specific and generic code in components/task_scheduler_util/. (Closed)
Patch Set: self-review Created 4 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 side-by-side diff with in-line comments
Download patch
Index: components/task_scheduler_util/BUILD.gn
diff --git a/components/task_scheduler_util/variations/BUILD.gn b/components/task_scheduler_util/BUILD.gn
similarity index 53%
rename from components/task_scheduler_util/variations/BUILD.gn
rename to components/task_scheduler_util/BUILD.gn
index 64aab015145a17c863c047663abe152ac851c4ac..0cc79ca2f34ef3f11a377f4ca79755c262e6cbbd 100644
--- a/components/task_scheduler_util/variations/BUILD.gn
+++ b/components/task_scheduler_util/BUILD.gn
@@ -2,29 +2,38 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-static_library("variations") {
+static_library("browser") {
sources = [
- "browser_variations_util.cc",
- "browser_variations_util.h",
+ "browser/initialization.cc",
+ "browser/initialization.h",
]
deps = [
+ ":common",
"//base",
"//base:base_static",
- "//components/task_scheduler_util/initialization",
- "//components/variations",
+ ]
+}
+
+static_library("common") {
+ sources = [
+ "common/variations_util.cc",
+ "common/variations_util.h",
+ ]
+
+ deps = [
+ "//base",
]
}
source_set("unit_tests") {
testonly = true
sources = [
- "browser_variations_util_unittest.cc",
+ "common/variations_util_unittest.cc",
]
deps = [
- ":variations",
+ ":common",
"//base",
- "//components/variations",
"//testing/gtest",
]
}

Powered by Google App Engine
This is Rietveld 408576698