Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: components/policy/core/browser/BUILD.gn

Issue 2558043004: Remove enable_configuration_policy build define. (Closed)
Patch Set: Merge Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/policy/BUILD.gn ('k') | components/policy/core/common/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 6
7 assert(!is_ios, "Policy should not be referenced on iOS")
8
7 group("browser") { 9 group("browser") {
8 if (is_component_build) { 10 if (is_component_build) {
9 public_deps = [ 11 public_deps = [
10 "//components/policy", 12 "//components/policy",
11 ] 13 ]
12 } else { 14 } else {
13 public_deps = [ 15 public_deps = [
14 ":internal", 16 ":internal",
15 ] 17 ]
16 } 18 }
17 } 19 }
18 20
19 source_set("internal") { 21 source_set("internal") {
20 visibility = [ "//components/policy/*" ] 22 visibility = [ "//components/policy/*" ]
21 sources = [ 23 sources = [
22 # Note that these sources are always included, even for builds that disable 24 "autofill_policy_handler.cc",
23 # policy. Most source files should go in the conditional sources list 25 "autofill_policy_handler.h",
24 # below. url_blacklist_manager.h is used by managed mode. 26 "browser_policy_connector.cc",
27 "browser_policy_connector.h",
28 "browser_policy_connector_base.cc",
29 "browser_policy_connector_base.h",
30 "browser_policy_connector_ios.h",
31 "browser_policy_connector_ios.mm",
32 "cloud/message_util.cc",
33 "cloud/message_util.h",
34 "configuration_policy_handler.cc",
35 "configuration_policy_handler.h",
36 "configuration_policy_handler_list.cc",
37 "configuration_policy_handler_list.h",
38 "configuration_policy_pref_store.cc",
39 "configuration_policy_pref_store.h",
40 "policy_error_map.cc",
41 "policy_error_map.h",
42 "proxy_policy_handler.cc",
43 "proxy_policy_handler.h",
25 "url_blacklist_manager.cc", 44 "url_blacklist_manager.cc",
26 "url_blacklist_manager.h", 45 "url_blacklist_manager.h",
46 "url_blacklist_policy_handler.cc",
47 "url_blacklist_policy_handler.h",
27 ] 48 ]
28 49
29 configs += [ "//components/policy:component_implementation" ] 50 configs += [ "//components/policy:component_implementation" ]
30 51
31 public_deps = [ 52 public_deps = [
32 "//base", 53 "//base",
33 ] 54 ]
34 deps = [ 55 deps = [
35 "//base/third_party/dynamic_annotations", 56 "//base/third_party/dynamic_annotations",
36 "//components/bookmarks/managed", 57 "//components/bookmarks/managed",
(...skipping 12 matching lines...) Expand all
49 "android/android_combined_policy_provider.cc", 70 "android/android_combined_policy_provider.cc",
50 "android/android_combined_policy_provider.h", 71 "android/android_combined_policy_provider.h",
51 "android/component_jni_registrar.cc", 72 "android/component_jni_registrar.cc",
52 "android/component_jni_registrar.h", 73 "android/component_jni_registrar.h",
53 "android/policy_converter.cc", 74 "android/policy_converter.cc",
54 "android/policy_converter.h", 75 "android/policy_converter.h",
55 ] 76 ]
56 deps += [ "//components/policy/android:jni_headers" ] 77 deps += [ "//components/policy/android:jni_headers" ]
57 } 78 }
58 79
59 if (enable_configuration_policy) { 80 public_deps += [ "//components/policy/core/common:internal" ]
60 sources += [ 81 deps += [
61 "autofill_policy_handler.cc", 82 "//components/autofill/core/common",
62 "autofill_policy_handler.h", 83 "//components/proxy_config",
63 "browser_policy_connector.cc", 84 "//google_apis",
64 "browser_policy_connector.h", 85 "//net",
65 "browser_policy_connector_base.cc", 86 "//third_party/icu",
66 "browser_policy_connector_base.h", 87 ]
67 "browser_policy_connector_ios.h",
68 "browser_policy_connector_ios.mm",
69 "cloud/message_util.cc",
70 "cloud/message_util.h",
71 "configuration_policy_handler.cc",
72 "configuration_policy_handler.h",
73 "configuration_policy_handler_list.cc",
74 "configuration_policy_handler_list.h",
75 "configuration_policy_pref_store.cc",
76 "configuration_policy_pref_store.h",
77 "policy_error_map.cc",
78 "policy_error_map.h",
79 "proxy_policy_handler.cc",
80 "proxy_policy_handler.h",
81 "url_blacklist_policy_handler.cc",
82 "url_blacklist_policy_handler.h",
83 ]
84
85 public_deps += [ "//components/policy/core/common:internal" ]
86 deps += [
87 "//components/autofill/core/common",
88 "//components/proxy_config",
89 "//google_apis",
90 "//net",
91 "//third_party/icu",
92 ]
93 }
94 } 88 }
95 89
96 if (enable_configuration_policy) { 90 static_library("test_support") {
97 static_library("test_support") { 91 testonly = true
98 testonly = true 92 sources = [
99 sources = [ 93 "configuration_policy_pref_store_test.cc",
100 "configuration_policy_pref_store_test.cc", 94 "configuration_policy_pref_store_test.h",
101 "configuration_policy_pref_store_test.h", 95 ]
102 ]
103 96
104 public_deps = [ 97 public_deps = [
105 ":browser", 98 ":browser",
106 "//base", 99 "//base",
107 100
108 # Explicitly link in the generated policy target into the test support 101 # Explicitly link in the generated policy target into the test support
109 # so it will be linked to dependent targets. Otherwise in component 102 # so it will be linked to dependent targets. Otherwise in component
110 # build, it will be hidden inside the policy component. 103 # build, it will be hidden inside the policy component.
111 "//components/policy:generated", 104 "//components/policy:generated",
112 "//components/policy/core/common:test_support", 105 "//components/policy/core/common:test_support",
113 ] 106 ]
114 deps = [ 107 deps = [
115 "//testing/gtest", 108 "//testing/gtest",
116 ] 109 ]
117 } 110 }
118 111
119 source_set("unit_tests") { 112 source_set("unit_tests") {
120 testonly = true 113 testonly = true
121 sources = [ 114 sources = [
122 "android/android_combined_policy_provider_unittest.cc", 115 "android/android_combined_policy_provider_unittest.cc",
123 "android/policy_converter_unittest.cc", 116 "android/policy_converter_unittest.cc",
124 "autofill_policy_handler_unittest.cc", 117 "autofill_policy_handler_unittest.cc",
125 "browser_policy_connector_unittest.cc", 118 "browser_policy_connector_unittest.cc",
126 "configuration_policy_handler_unittest.cc", 119 "configuration_policy_handler_unittest.cc",
127 "configuration_policy_pref_store_unittest.cc", 120 "configuration_policy_pref_store_unittest.cc",
128 "proxy_policy_handler_unittest.cc", 121 "proxy_policy_handler_unittest.cc",
129 "url_blacklist_manager_unittest.cc", 122 "url_blacklist_manager_unittest.cc",
130 "url_blacklist_policy_handler_unittest.cc", 123 "url_blacklist_policy_handler_unittest.cc",
131 ] 124 ]
132 deps = [ 125 deps = [
133 ":test_support", 126 ":test_support",
134 "//base", 127 "//base",
135 "//components/autofill/core/common", 128 "//components/autofill/core/common",
136 "//components/policy:generated", 129 "//components/policy:generated",
137 "//components/prefs:test_support", 130 "//components/prefs:test_support",
138 "//components/proxy_config", 131 "//components/proxy_config",
139 "//components/url_formatter", 132 "//components/url_formatter",
140 "//google_apis", 133 "//google_apis",
141 "//net", 134 "//net",
142 "//testing/gmock", 135 "//testing/gmock",
143 "//testing/gtest", 136 "//testing/gtest",
144 ] 137 ]
145 }
146 } 138 }
OLDNEW
« no previous file with comments | « components/policy/BUILD.gn ('k') | components/policy/core/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698