Snap for 7723001 from 2fafc7ad9c97dc5f78241bcdaf1e50d2975983f1 to tm-release
Change-Id: I25109eca1ee853b68b23ed1b5372af0011094f08
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 @@
// 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);