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

Unified Diff: components/flags_ui/BUILD.gn

Issue 1411453004: Componentize internal class FlagsState in flags_ui component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@feature_entry
Patch Set: Rebase Created 5 years, 1 month 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
« no previous file with comments | « components/flags_ui.gypi ('k') | components/flags_ui/flags_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/flags_ui/BUILD.gn
diff --git a/components/flags_ui/BUILD.gn b/components/flags_ui/BUILD.gn
index 0678f2088dba0ddbcd8793d46c129fb1ed86bd1d..31252611f427f372a1303c75d874f077457b2804 100644
--- a/components/flags_ui/BUILD.gn
+++ b/components/flags_ui/BUILD.gn
@@ -7,6 +7,8 @@ source_set("flags_ui") {
"feature_entry.cc",
"feature_entry.h",
"feature_entry_macros.h",
+ "flags_state.cc",
+ "flags_state.h",
"flags_storage.h",
"flags_ui_constants.cc",
"flags_ui_constants.h",
@@ -17,9 +19,36 @@ source_set("flags_ui") {
]
deps = [
+ ":switches",
"//base",
"//base:prefs",
"//components/strings",
"//ui/base",
]
}
+
+# This is a separate target so that the dependencies of
+# //chrome/common can be kept minimal.
+source_set("switches") {
+ sources = [
+ "flags_ui_switches.cc",
+ "flags_ui_switches.h",
+ ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "flags_state_unittest.cc",
+ ]
+
+ deps = [
+ ":flags_ui",
+ ":switches",
+ "//base",
+ "//base:prefs",
+ "//base:prefs_test_support",
+ "//components/strings",
+ "//testing/gtest",
+ ]
+}
« no previous file with comments | « components/flags_ui.gypi ('k') | components/flags_ui/flags_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698