Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1484)

Unified Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 2613133003: Disable MediaSession API for WebView (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/lib/main/aw_main_delegate.cc
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc
index 3c91dc748dbc69bab0fe1a56e7ea1f998f0b004f..6697767ba704bdf9eb4f69d6678a0654eae17a16 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -112,6 +112,10 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
// Presentation API, see https://crbug.com/521319.
cl->AppendSwitch(switches::kDisableRemotePlaybackAPI);
+ // WebView does not support MediaSession API since there's no UI for media
+ // metadata and controls.
+ cl->AppendSwitchASCII(switches::kDisableBlinkFeatures, "MediaSession");
Torne 2017/01/09 11:47:06 I'm not too familiar with how command line manipul
Zhiqiang Zhang (Slow) 2017/01/09 14:29:21 You are right, they will conflict. Now I just foll
+
#if defined(V8_USE_EXTERNAL_STARTUP_DATA)
if (cl->GetSwitchValueASCII(switches::kProcessType).empty()) {
// Browser process (no type specified).
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698