1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/features.gni")
7 # GYP version: components/policy.gypi:policy_component_core_browser
8 source_set("browser") {
10 # Note that these sources are always included, even for builds that disable
11 # policy. Most source files should go in the conditional sources list
12 # below. url_blacklist_manager.h is used by managed mode.
13 "url_blacklist_manager.cc",
14 "url_blacklist_manager.h",
17 defines = [ "POLICY_COMPONENT_IMPLEMENTATION" ]
22 "//base/third_party/dynamic_annotations",
23 "//components/bookmarks/managed",
24 "//components/keyed_service/core",
25 "//components/pref_registry",
26 "//components/strings",
27 "//components/url_matcher",
32 if (enable_configuration_policy) {
34 "autofill_policy_handler.cc",
35 "autofill_policy_handler.h",
36 "browser_policy_connector.cc",
37 "browser_policy_connector.h",
38 "browser_policy_connector_ios.h",
39 "browser_policy_connector_ios.mm",
40 "cloud/message_util.cc",
41 "cloud/message_util.h",
42 "configuration_policy_handler.cc",
43 "configuration_policy_handler.h",
44 "configuration_policy_handler_list.cc",
45 "configuration_policy_handler_list.h",
46 "configuration_policy_pref_store.cc",
47 "configuration_policy_pref_store.h",
48 "policy_error_map.cc",
50 "url_blacklist_policy_handler.cc",
51 "url_blacklist_policy_handler.h",
55 "//components/autofill/core/common",
56 "//components/policy",
57 "//components/policy/proto",