Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
index c0f23414df16a0af8b116ff4666e5b9b58c2a8b8..5a090ef4da90586b202685eea2931facd2b178d1 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
@@ -3146,6 +3146,14 @@ public class ContentViewCore |
return mRenderCoordinates; |
} |
+ @VisibleForTesting |
+ public boolean isGeolocationActiveForTesting() { |
+ if (mNativeContentViewCore != 0) { |
+ return nativeIsGeolocationActiveForTesting(mNativeContentViewCore); |
+ } |
+ return false; |
+ } |
+ |
@CalledByNative |
private int getLocationInWindowX() { |
return mLocationInWindowX; |
@@ -3401,4 +3409,6 @@ public class ContentViewCore |
private native void nativeSendActionAfterDoubleTapUma(long nativeContentViewCoreImpl, |
int type, boolean hasDelay, int count); |
+ |
+ private native boolean nativeIsGeolocationActiveForTesting(long nativeContentViewCoreImpl); |
} |