diff options
-rw-r--r-- | chromium/content/browser/BUILD.gn | 10 | ||||
-rw-r--r-- | chromium/content/browser/renderer_host/render_process_host_impl.cc | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/chromium/content/browser/BUILD.gn b/chromium/content/browser/BUILD.gn index 8b5b0277c6f..8e17f405de4 100644 --- a/chromium/content/browser/BUILD.gn +++ b/chromium/content/browser/BUILD.gn @@ -8,6 +8,7 @@ import("//build/config/linux/pangocairo/pangocairo.gni") import("//build/config/ui.gni") import("//gpu/vulkan/features.gni") import("//media/media_options.gni") +import("//net/features.gni") import("//ppapi/features/features.gni") import("//printing/features/features.gni") import("//third_party/WebKit/public/public_features.gni") @@ -1112,8 +1113,6 @@ source_set("browser") { "net/network_quality_observer_impl.h", "net/quota_policy_cookie_store.cc", "net/quota_policy_cookie_store.h", - "net/reporting_service_proxy.cc", - "net/reporting_service_proxy.h", "net/view_blob_internals_job_factory.cc", "net/view_blob_internals_job_factory.h", "net/view_http_cache_job_factory.cc", @@ -1698,6 +1697,13 @@ source_set("browser") { deps += [ "//printing" ] } + if (enable_reporting) { + sources += [ + "net/reporting_service_proxy.cc", + "net/reporting_service_proxy.h", + ] + } + if (!is_mac) { deps += [ "//sandbox" ] } diff --git a/chromium/content/browser/renderer_host/render_process_host_impl.cc b/chromium/content/browser/renderer_host/render_process_host_impl.cc index 26a4e003b1d..54f98fa1a86 100644 --- a/chromium/content/browser/renderer_host/render_process_host_impl.cc +++ b/chromium/content/browser/renderer_host/render_process_host_impl.cc @@ -1917,8 +1917,10 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() { registry->AddInterface( base::Bind(&metrics::CreateSingleSampleMetricsProvider)); +#if BUILDFLAG(ENABLE_REPORTING) registry->AddInterface( base::Bind(&CreateReportingServiceProxy, storage_partition_impl_)); +#endif // This is to support usage of WebSockets in cases in which there is no // associated RenderFrame (e.g., Shared Workers). |