[ios] Set kBlockedBySystemPermission
This generalizes some code that does not appear to be mac-specific. Bug: 1455586 Change-Id: I38668c9c82e592dc816916a4c76d0e4ece59cda8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4725901 Auto-Submit: Ian Vollick <vollick@chromium.org> Reviewed-by: Matt Reynolds <mattreynolds@chromium.org> Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Cr-Commit-Position: refs/heads/main@{#1176160}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
8034097a5e
commit
70213dbcfd
@@ -92,12 +92,12 @@ void NetworkLocationProvider::FillDiagnostics(
|
||||
diagnostics.provider_state =
|
||||
mojom::GeolocationDiagnostics::ProviderState::kLowAccuracy;
|
||||
}
|
||||
#if BUILDFLAG(IS_MAC)
|
||||
#if BUILDFLAG(IS_APPLE)
|
||||
if (!is_system_permission_granted_) {
|
||||
diagnostics.provider_state = mojom::GeolocationDiagnostics::
|
||||
ProviderState::kBlockedBySystemPermission;
|
||||
}
|
||||
#endif // BUILDFLAG(IS_MAC)
|
||||
#endif // BUILDFLAG(IS_APPLE)
|
||||
} else {
|
||||
diagnostics.provider_state =
|
||||
mojom::GeolocationDiagnostics::ProviderState::kStopped;
|
||||
|
Reference in New Issue
Block a user