Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(897)

Unified Diff: chrome/browser/android/location_settings_impl.cc

Issue 2725253002: Rebase and some more stuff
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/location_settings_impl.h ('k') | chrome/browser/android/mock_location_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5ddf275d05e1972ca58c1b96e026bcc6dc6fce81..63595afb99d0812ab62fc13e240f94fbc6d97e5a 100644
--- a/chrome/browser/android/location_settings_impl.cc
+++ b/chrome/browser/android/location_settings_impl.cc
@@ -17,13 +17,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);
« no previous file with comments | « chrome/browser/android/location_settings_impl.h ('k') | chrome/browser/android/mock_location_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698