| Index: chrome/browser/android/location_settings_impl.cc
|
| diff --git a/chrome/browser/android/location_settings_impl.cc b/chrome/browser/android/location_settings_impl.cc
|
| index 32232db88efe08df72614a2a956166937e8fee72..683d22ccb6eaaa2b45abdc8995eea2431e81056d 100644
|
| --- a/chrome/browser/android/location_settings_impl.cc
|
| +++ b/chrome/browser/android/location_settings_impl.cc
|
| @@ -19,13 +19,23 @@ LocationSettingsImpl::LocationSettingsImpl() {}
|
|
|
| LocationSettingsImpl::~LocationSettingsImpl() {}
|
|
|
| -bool LocationSettingsImpl::CanSitesRequestLocationPermission(
|
| +bool LocationSettingsImpl::HasAndroidLocationPermission() {
|
| + JNIEnv* env = AttachCurrentThread();
|
| + return Java_LocationSettings_hasAndroidLocationPermission(env);
|
| +}
|
| +
|
| +bool LocationSettingsImpl::CanPromptForAndroidLocationPermission(
|
| content::WebContents* web_contents) {
|
| JNIEnv* env = AttachCurrentThread();
|
| - return Java_LocationSettings_canSitesRequestLocationPermission(
|
| + return Java_LocationSettings_canPromptForAndroidLocationPermission(
|
| env, web_contents->GetJavaWebContents());
|
| }
|
|
|
| +bool LocationSettingsImpl::IsSystemLocationSettingEnabled() {
|
| + JNIEnv* env = AttachCurrentThread();
|
| + return Java_LocationSettings_isSystemLocationSettingEnabled(env);
|
| +}
|
| +
|
| bool LocationSettingsImpl::CanPromptToEnableSystemLocationSetting() {
|
| JNIEnv* env = AttachCurrentThread();
|
| return Java_LocationSettings_canPromptToEnableSystemLocationSetting(env);
|
|
|