kill Location, fall back to system: keep disabled LocationProviderManager
disable the possibility of using external services via networks for geolocation
This commit is contained in:
@@ -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<device::mojom::LocationProviderManagerMode>::Option
|
||||
location_provider_manager_mode_options[] = {
|
||||
@@ -52,7 +53,7 @@ const base::FeatureParam<device::mojom::LocationProviderManagerMode>::Option
|
||||
const base::FeatureParam<device::mojom::LocationProviderManagerMode>
|
||||
kLocationProviderManagerParam{
|
||||
&kLocationProviderManager, "LocationProviderManagerMode",
|
||||
- device::mojom::LocationProviderManagerMode::kNetworkOnly,
|
||||
+ device::mojom::LocationProviderManagerMode::kPlatformOnly,
|
||||
&location_provider_manager_mode_options};
|
||||
|
||||
} // namespace features
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user