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") {
9 visibility = [ "//components/policy/*" ]
11 # Note that these sources are always included, even for builds that disable
12 # policy. Most source files should go in the conditional sources list
13 # below. url_blacklist_manager.h is used by managed mode.
14 "url_blacklist_manager.cc",
15 "url_blacklist_manager.h",
18 defines = [ "POLICY_COMPONENT_IMPLEMENTATION" ]
23 "//base/third_party/dynamic_annotations",
24 "//components/bookmarks/managed",
25 "//components/keyed_service/core",
26 "//components/pref_registry",
27 "//components/strings",
28 "//components/url_matcher",
35 "android/android_combined_policy_provider.cc",
36 "android/android_combined_policy_provider.h",
37 "android/component_jni_registrar.cc",
38 "android/component_jni_registrar.h",
39 "android/policy_converter.cc",
40 "android/policy_converter.h",
42 deps += [ "//components/policy/android:jni_headers" ]
45 if (enable_configuration_policy) {
47 "autofill_policy_handler.cc",
48 "autofill_policy_handler.h",
49 "browser_policy_connector.cc",
50 "browser_policy_connector.h",
51 "browser_policy_connector_base.cc",
52 "browser_policy_connector_base.h",
53 "browser_policy_connector_ios.h",
54 "browser_policy_connector_ios.mm",
55 "cloud/message_util.cc",
56 "cloud/message_util.h",
57 "configuration_policy_handler.cc",
58 "configuration_policy_handler.h",
59 "configuration_policy_handler_list.cc",
60 "configuration_policy_handler_list.h",
61 "configuration_policy_pref_store.cc",
62 "configuration_policy_pref_store.h",
63 "policy_error_map.cc",
65 "url_blacklist_policy_handler.cc",
66 "url_blacklist_policy_handler.h",
70 "//components/autofill/core/common",
71 "//components/policy",
72 "//components/policy/proto",