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

Unified Diff: components/search_engines/BUILD.gn

Issue 396303002: Allow building search_engines component with configuration_policy==0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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
« no previous file with comments | « components/search_engines.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/search_engines/BUILD.gn
diff --git a/components/search_engines/BUILD.gn b/components/search_engines/BUILD.gn
index 734ec72b41b36c705ce044b08c4fdb9765d60588..e8cd405d8fa3a84c7f7d57657f83c46062b9e844 100644
--- a/components/search_engines/BUILD.gn
+++ b/components/search_engines/BUILD.gn
@@ -2,14 +2,13 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/features.gni")
import("//tools/json_to_struct/json_to_struct.gni")
static_library("search_engines") {
sources = [
"default_search_manager.cc",
"default_search_manager.h",
- "default_search_policy_handler.cc",
- "default_search_policy_handler.h",
"keyword_table.cc",
"keyword_table.h",
"keyword_web_data_service.cc",
@@ -47,7 +46,6 @@ static_library("search_engines") {
"//base",
"//components/keyed_service/core",
"//components/metrics/proto",
- "//components/policy",
"//components/pref_registry",
"//components/rappor",
"//components/strings",
@@ -62,6 +60,16 @@ static_library("search_engines") {
"//url",
#'google_core_browser', TODO(GYP)
]
+
+ if (enable_configuration_policy) {
+ sources += [
+ "default_search_policy_handler.cc",
+ "default_search_policy_handler.h",
+ ]
+ deps += [
+ "//components/policy",
+ ]
+ }
}
json_to_struct("prepopulated_engines") {
« no previous file with comments | « components/search_engines.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698