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

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

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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 93d19f547627c5bac19051897be97ddcbc819e26..85c010342649178589bcc8eece3c75564dd5f89b 100644
--- a/chrome/browser/android/location_settings_impl.cc
+++ b/chrome/browser/android/location_settings_impl.cc
@@ -6,7 +6,9 @@
#include "base/android/jni_android.h"
#include "content/public/browser/web_contents.h"
+#if !defined(USE_AURA)
#include "jni/LocationSettings_jni.h"
+#endif
using base::android::AttachCurrentThread;
@@ -16,13 +18,21 @@ LocationSettingsImpl::~LocationSettingsImpl() {}
bool LocationSettingsImpl::CanSitesRequestLocationPermission(
content::WebContents* web_contents) {
+#if !defined(USE_AURA)
JNIEnv* env = AttachCurrentThread();
return Java_LocationSettings_canSitesRequestLocationPermission(
env, web_contents->GetJavaWebContents().obj());
+#else
+ return false;
+#endif
}
// Register native methods
bool LocationSettingsImpl::Register(JNIEnv* env) {
+#if !defined(USE_AURA)
return RegisterNativesImpl(env);
+#else
+ return true;
+#endif
}

Powered by Google App Engine
This is Rietveld 408576698