Commit 047c3d69 authored by jiangj@opera.com's avatar jiangj@opera.com

Allow building search_engines component with configuration_policy==0

Review URL: https://codereview.chromium.org/396303002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284009 0039d316-1c4b-4281-b951-d872f2087c98
parent 7a2c92ce
......@@ -68,6 +68,17 @@
'search_engines/util.cc',
'search_engines/util.h',
],
'conditions': [
['configuration_policy==0', {
'dependencies!': [
'policy'
],
'sources!': [
'search_engines/default_search_policy_handler.cc',
'search_engines/default_search_policy_handler.h',
],
}],
],
},
{
'target_name': 'search_engines_test_support',
......
......@@ -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") {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment