diff options
author | sievers <sievers@chromium.org> | 2014-09-04 20:57:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-05 03:59:19 +0000 |
commit | ce87a386deb23871aafe5c4c2cc96e63e3d65615 (patch) | |
tree | f9d0f4f53f28fb532de079b5f5cfdb4859a08f16 /android_webview/test | |
parent | 4f45409615609a5bf0084b9a7670b2fffda8a952 (diff) | |
download | chromium_src-ce87a386deb23871aafe5c4c2cc96e63e3d65615.zip chromium_src-ce87a386deb23871aafe5c4c2cc96e63e3d65615.tar.gz chromium_src-ce87a386deb23871aafe5c4c2cc96e63e3d65615.tar.bz2 |
android: Enable media autoplay for webview test shell
This is required for WebGL conformance tests and cannot be passed
on the cmdline the way WebView overrides this from AwSettings.
Review URL: https://codereview.chromium.org/546643002
Cr-Commit-Position: refs/heads/master@{#293429}
Diffstat (limited to 'android_webview/test')
-rw-r--r-- | android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellActivity.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellActivity.java b/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellActivity.java index 0e6070b..69a1703 100644 --- a/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellActivity.java +++ b/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellActivity.java @@ -129,6 +129,8 @@ public class AwShellActivity extends Activity { } final AwSettings awSettings = new AwSettings(this /*context*/, false /*isAccessFromFileURLsGrantedByDefault*/, true /*supportsLegacyQuirks*/); + // Required for WebGL conformance tests. + awSettings.setMediaPlaybackRequiresUserGesture(false); testContainerView.initialize(new AwContents(mBrowserContext, testContainerView, testContainerView.getContext(), testContainerView.getInternalAccessDelegate(), testContainerView.getNativeGLDelegate(), awContentsClient, awSettings)); |