diff options
author | Jonathan Dixon <joth@google.com> | 2013-10-09 23:26:36 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-10-09 23:26:36 -0700 |
commit | 80c0348fe2315235bbba4911faeb7f5abf5560a4 (patch) | |
tree | 8ee1581ad76c5fea87ae2ff4a4689319a49e8b38 | |
parent | e20e606c53ea0972ccfde4af2933239cefb4fa8b (diff) | |
parent | 58ca6d4c0f3ea5d35d313ac13915a5a6b5c1ce9e (diff) | |
download | webview-80c0348fe2315235bbba4911faeb7f5abf5560a4.tar.gz |
am 58ca6d4c: Merge "Set the webview-classic-workarounds for targetSDk < KLP" into klp-dev
* commit '58ca6d4c0f3ea5d35d313ac13915a5a6b5c1ce9e':
Set the webview-classic-workarounds for targetSDk < KLP
-rw-r--r-- | chromium/java/com/android/webview/chromium/WebViewChromiumFactoryProvider.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/java/com/android/webview/chromium/WebViewChromiumFactoryProvider.java b/chromium/java/com/android/webview/chromium/WebViewChromiumFactoryProvider.java index 5fd2660..1d4da42 100644 --- a/chromium/java/com/android/webview/chromium/WebViewChromiumFactoryProvider.java +++ b/chromium/java/com/android/webview/chromium/WebViewChromiumFactoryProvider.java @@ -157,6 +157,11 @@ public class WebViewChromiumFactoryProvider implements WebViewFactoryProvider { cl.appendSwitch("testing-webview-gl-mode"); } + Context context = ActivityThread.currentApplication(); + if (context.getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.KITKAT) { + cl.appendSwitch("enable-webview-classic-workarounds"); + } + // We don't need to extract any paks because for WebView, they are // in the system image. ResourceExtractor.setMandatoryPaksToExtract(""); |