diff options
author | Xin Li <delphij@google.com> | 2022-06-27 23:39:03 +0000 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2022-06-27 23:39:03 +0000 |
commit | 939d39f6954c94907963a03fef000debcf1cea6d (patch) | |
tree | fdeba5f34c420afc236b72db7b97e94674b9b3b0 | |
parent | d8c285e99dd95e27f2ea028545af38163cec78b3 (diff) | |
parent | 2fafc7ad9c97dc5f78241bcdaf1e50d2975983f1 (diff) | |
download | Browser2-939d39f6954c94907963a03fef000debcf1cea6d.tar.gz |
Merge tm-dev-plus-aosp-without-vendor@8763363temp_sam_242648940
Bug: 236760014
Merged-In: I1e00a1b506db818fec91a27065972268991d99bf
Change-Id: Ie5bf5613000b9fbccaadabec9bc59fe9943843c2
-rw-r--r-- | src/org/chromium/webview_shell/WebViewBrowserActivity.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/org/chromium/webview_shell/WebViewBrowserActivity.java b/src/org/chromium/webview_shell/WebViewBrowserActivity.java index 0a7b637..cce295a 100644 --- a/src/org/chromium/webview_shell/WebViewBrowserActivity.java +++ b/src/org/chromium/webview_shell/WebViewBrowserActivity.java @@ -570,21 +570,17 @@ public class WebViewBrowserActivity extends Activity implements PopupMenu.OnMenu // but we still use it because we support api level 19 and up. @SuppressWarnings("deprecation") private void initializeSettings(WebSettings settings) { - File appcache = null; File geolocation = null; StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); - appcache = getDir("appcache", 0); geolocation = getDir("geolocation", 0); StrictMode.setThreadPolicy(oldPolicy); settings.setJavaScriptEnabled(true); // configure local storage apis and their database paths. - settings.setAppCachePath(appcache.getPath()); settings.setGeolocationDatabasePath(geolocation.getPath()); - settings.setAppCacheEnabled(true); settings.setGeolocationEnabled(true); settings.setDatabaseEnabled(true); settings.setDomStorageEnabled(true); |