summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/jni/WebViewCore.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-05-18 04:18:48 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-18 04:18:48 -0700
commitb147bc5a5760cd282742a889a9fe067201c16eb9 (patch)
tree405f74f04962d875393d543f84846736cc07ad9f /Source/WebKit/android/jni/WebViewCore.cpp
parent70ff165c2500cfd26233856185befbb46ec27e99 (diff)
parent0769e328661adb91472349fbfa3a5474a1f7ee0d (diff)
downloadexternal_webkit-b147bc5a5760cd282742a889a9fe067201c16eb9.zip
external_webkit-b147bc5a5760cd282742a889a9fe067201c16eb9.tar.gz
external_webkit-b147bc5a5760cd282742a889a9fe067201c16eb9.tar.bz2
Merge changes I2de9dfed,I80436e37
* changes: Move GeolocationServiceBridge to WebKit/android/jni and extract Listener interface GeolocationPermissions cleanup
Diffstat (limited to 'Source/WebKit/android/jni/WebViewCore.cpp')
-rw-r--r--Source/WebKit/android/jni/WebViewCore.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp
index dc4f70c..29f8f1e 100644
--- a/Source/WebKit/android/jni/WebViewCore.cpp
+++ b/Source/WebKit/android/jni/WebViewCore.cpp
@@ -4768,11 +4768,9 @@ static void Pause(JNIEnv* env, jobject obj, jint nativeClass)
// browser). The browser can only be killed by the system when it is in the
// background, so saving the Geolocation permission state now ensures that
// is maintained when the browser is killed.
- WebViewCore* viewImpl = reinterpret_cast<WebViewCore*>(nativeClass);
- ChromeClient* chromeClient = viewImpl->mainFrame()->page()->chrome()->client();
- ChromeClientAndroid* chromeClientAndroid = static_cast<ChromeClientAndroid*>(chromeClient);
- chromeClientAndroid->storeGeolocationPermissions();
+ GeolocationPermissions::maybeStorePermanentPermissions();
+ WebViewCore* viewImpl = reinterpret_cast<WebViewCore*>(nativeClass);
Frame* mainFrame = viewImpl->mainFrame();
for (Frame* frame = mainFrame; frame; frame = frame->tree()->traverseNext()) {
Geolocation* geolocation = frame->domWindow()->navigator()->optionalGeolocation();