diff options
author | Steve Block <steveblock@google.com> | 2012-05-18 04:18:48 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-05-18 04:18:48 -0700 |
commit | b147bc5a5760cd282742a889a9fe067201c16eb9 (patch) | |
tree | 405f74f04962d875393d543f84846736cc07ad9f /Source/WebKit/android/jni/WebViewCore.cpp | |
parent | 70ff165c2500cfd26233856185befbb46ec27e99 (diff) | |
parent | 0769e328661adb91472349fbfa3a5474a1f7ee0d (diff) | |
download | external_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.cpp | 6 |
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(); |