From cbaed036f43c210259133abd16c543d732b8b89c Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Tue, 30 Jul 2024 08:56:35 +0200 Subject: [PATCH] kill Location, fall back to system: keep disabled LocationProviderManager disable the possibility of using external services via networks for geolocation --- .../kill-Location-fall-back-to-system.patch | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/build/patches/kill-Location-fall-back-to-system.patch b/build/patches/kill-Location-fall-back-to-system.patch index d6f723f7..4b57fad6 100644 --- a/build/patches/kill-Location-fall-back-to-system.patch +++ b/build/patches/kill-Location-fall-back-to-system.patch @@ -6,7 +6,8 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html --- services/device/geolocation/BUILD.gn | 1 - .../device/geolocation/LocationProviderFactory.java | 11 ++--------- - 2 files changed, 2 insertions(+), 10 deletions(-) + services/device/public/cpp/device_features.cc | 3 ++- + 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/services/device/geolocation/BUILD.gn b/services/device/geolocation/BUILD.gn --- a/services/device/geolocation/BUILD.gn @@ -44,4 +45,24 @@ diff --git a/services/device/geolocation/android/java/src/org/chromium/device/ge return sProviderImpl; } } +diff --git a/services/device/public/cpp/device_features.cc b/services/device/public/cpp/device_features.cc +--- a/services/device/public/cpp/device_features.cc ++++ b/services/device/public/cpp/device_features.cc +@@ -38,6 +38,7 @@ BASE_FEATURE(kSerialPortConnected, + BASE_FEATURE(kLocationProviderManager, + "LocationProviderManager", + base::FEATURE_DISABLED_BY_DEFAULT); ++SET_CROMITE_FEATURE_DISABLED(kLocationProviderManager); + + const base::FeatureParam::Option + location_provider_manager_mode_options[] = { +@@ -52,7 +53,7 @@ const base::FeatureParam::Option + const base::FeatureParam + kLocationProviderManagerParam{ + &kLocationProviderManager, "LocationProviderManagerMode", +- device::mojom::LocationProviderManagerMode::kNetworkOnly, ++ device::mojom::LocationProviderManagerMode::kPlatformOnly, + &location_provider_manager_mode_options}; + + } // namespace features --