Index: net/BUILD.gn |
diff --git a/net/BUILD.gn b/net/BUILD.gn |
index 4201f5b5d88d4ba4ca0826f3aa78255a9590f113..9aa45187d9ce7132227eae33cbacf221cebc0c20 100644 |
--- a/net/BUILD.gn |
+++ b/net/BUILD.gn |
@@ -54,6 +54,7 @@ buildflag_header("features") { |
"ENABLE_REPORTING=$enable_reporting", |
"ENABLE_WEBSOCKETS=$enable_websockets", |
"USE_BYTE_CERTS=$use_byte_certs", |
+ "INCLUDE_TRANSPORT_SECURITY_STATE_PRELOAD_LIST=$include_transport_security_state_preload_list", |
] |
} |
@@ -286,6 +287,7 @@ component("net") { |
"http/http_vary_data.h", |
"http/transport_security_state.cc", |
"http/transport_security_state.h", |
+ "http/transport_security_state_source.cc", |
"http/transport_security_state_source.h", |
"log/net_log.cc", |
"log/net_log.h", |
@@ -360,11 +362,14 @@ component("net") { |
"//base", |
"//net/base/registry_controlled_domains", |
"//net/data/ssl/certificate_transparency:ct_log_list", |
- "//net/http:generate_transport_security_state", |
"//third_party/protobuf:protobuf_lite", |
"//url:url_features", |
] |
+ if (include_transport_security_state_preload_list) { |
+ deps += [ "//net/http:generate_transport_security_state" ] |
+ } |
+ |
public_deps = [ |
":net_quic_proto", |
":traffic_annotation", |