diff options
author | Steve Block <steveblock@google.com> | 2009-08-24 11:31:18 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2009-08-26 12:51:14 +0100 |
commit | d875ce6dac3c2e9a671c121c80b40d2536cbb2af (patch) | |
tree | a8531f7a8969fd644b9b1baf4c03388073f7764c /core/java/android/webkit/WebSettings.java | |
parent | 4804c3e23b0bb8e77b690df177ebd4d6fb949aa8 (diff) | |
download | frameworks_base-d875ce6dac3c2e9a671c121c80b40d2536cbb2af.zip frameworks_base-d875ce6dac3c2e9a671c121c80b40d2536cbb2af.tar.gz frameworks_base-d875ce6dac3c2e9a671c121c80b40d2536cbb2af.tar.bz2 |
Sets or clears Geolocation permissions for Google origins when the 'Location & privacy - Share with Google' sysetm setting is changed.
This fixes bug http://b/issue?id=1933893
Diffstat (limited to 'core/java/android/webkit/WebSettings.java')
-rw-r--r-- | core/java/android/webkit/WebSettings.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebSettings.java b/core/java/android/webkit/WebSettings.java index e8b2702..3793dd5 100644 --- a/core/java/android/webkit/WebSettings.java +++ b/core/java/android/webkit/WebSettings.java @@ -189,6 +189,10 @@ public class WebSettings { private boolean mAllowFileAccess = true; private boolean mLoadWithOverviewMode = true; + // Manages interaction of the system setting 'Location & security - Share + // with Google' and the browser. + static GoogleLocationSettingManager sGoogleLocationSettingManager; + // Class to handle messages before WebCore is ready. private class EventHandler { // Message id for syncing @@ -1315,6 +1319,8 @@ public class WebSettings { if (DebugFlags.WEB_SETTINGS) { junit.framework.Assert.assertTrue(frame.mNativeFrame != 0); } + sGoogleLocationSettingManager = new GoogleLocationSettingManager(mContext); + sGoogleLocationSettingManager.start(); nativeSync(frame.mNativeFrame); mSyncPending = false; mEventHandler.createHandler(); |