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") { |