am 050c552f: Fix CookieSyncManager for WebViewClassic

* commit '050c552f096a6f8f2283162edcb9c6b015cfb3dd':
  Fix CookieSyncManager for WebViewClassic
This commit is contained in:
Jonathan Dixon
2013-10-04 07:20:49 -07:00
committed by Android Git Automerger

View File

@@ -89,6 +89,10 @@ public final class CookieSyncManager extends WebSyncManager {
if (context == null) {
throw new IllegalArgumentException("Invalid context argument");
}
// TODO: Remove this workaround after webview classic is no longer supported.
if (WebViewFactory.getProvider().getClass().getName().contains("WebViewClassic")) {
WebViewDatabase.getInstance(context);
}
setGetInstanceIsAllowed();
return getInstance();