Update V8 to version 4.6.62.
[chromium-blink-merge.git] / components / policy / core / browser / BUILD.gn
blob03340d304456274ec22193695a17d0deac96c074
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/*" ]
10   sources = [
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",
16   ]
18   defines = [ "POLICY_COMPONENT_IMPLEMENTATION" ]
20   deps = [
21     "//base",
22     "//base:prefs",
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",
29     "//net",
30     "//ui/base",
31   ]
33   if (is_android) {
34     sources += [
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",
41     ]
42     deps += [ "//components/policy/android:jni_headers" ]
43   }
45   if (enable_configuration_policy) {
46     sources += [
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",
64       "policy_error_map.h",
65       "url_blacklist_policy_handler.cc",
66       "url_blacklist_policy_handler.h",
67     ]
69     deps += [
70       "//components/autofill/core/common",
71       "//components/policy",
72       "//components/policy/proto",
73       "//third_party/icu",
74     ]
75   }