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.
4
5import("//build/config/features.gni")
6
7# GYP version: components/policy.gypi:policy_component_core_browser
8source_set("browser") {
9  sources = [
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",
15  ]
16
17  defines = [ "POLICY_COMPONENT_IMPLEMENTATION" ]
18
19  deps = [
20    "//base",
21    "//base:prefs",
22    "//base/third_party/dynamic_annotations",
23    "//components/bookmarks/browser",
24    "//components/keyed_service/core",
25    "//components/pref_registry",
26    "//components/strings",
27    "//components/url_matcher",
28    "//net",
29    "//ui/base",
30  ]
31
32  if (enable_configuration_policy) {
33    sources += [
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      "managed_bookmarks_tracker.cc",
49      "managed_bookmarks_tracker.h",
50      "policy_error_map.cc",
51      "policy_error_map.h",
52      "url_blacklist_policy_handler.cc",
53      "url_blacklist_policy_handler.h",
54    ]
55
56    deps += [
57      "//components/autofill/core/browser",
58      "//components/autofill/core/common",
59      "//components/policy",
60      "//components/policy/proto",
61      "//third_party/icu",
62    ]
63  }
64}
65