Commit e3984733 authored by Scott Violet's avatar Scott Violet Committed by Commit Bot

weblayer: add a bunch of TODO for disabled features

BUG=none
TEST=none

Change-Id: I3dbca517481b6fd854e7055faea9ae6ec7ef73fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2080457
Auto-Submit: Scott Violet <sky@chromium.org>
Reviewed-by: default avatarEvan Stade <estade@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#745527}
parent 7aca3baa
......@@ -114,20 +114,27 @@ bool ContentMainDelegateImpl::BasicStartupComplete(int* exit_code) {
// sites to do feature detection, and prevents crashes in some not fully
// implemented features.
base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
// TODO(crbug.com/1025610): make notifications work with WebLayer.
cl->AppendSwitch(switches::kDisableNotifications);
// TODO(crbug.com/1025626): and crbug.com/1051752, make speech work with
// WebLayer.
cl->AppendSwitch(switches::kDisableSpeechSynthesisAPI);
cl->AppendSwitch(switches::kDisableSpeechAPI);
if (!cl->HasSwitch(switches::kWebLayerFakePermissions))
cl->AppendSwitch(switches::kDisablePermissionsAPI);
// TODO(crbug.com/1057099): make presentation-api work with WebLayer.
cl->AppendSwitch(switches::kDisablePresentationAPI);
// TODO(crbug.com/1057100): make remote-playback-api work with WebLayer.
cl->AppendSwitch(switches::kDisableRemotePlaybackAPI);
#if defined(OS_ANDROID)
cl->AppendSwitch(switches::kDisableMediaSessionAPI);
#endif
DisableFeaturesIfNotSet({
// TODO(crbug.com/1025619): remove |features::kWebPayments| once WebLayer
// supports WebPayments.
::features::kWebPayments, ::features::kWebAuth, ::features::kSmsReceiver,
// TODO(crbug.com/1025619): make web-payments work with WebLayer.
::features::kWebPayments,
// TODO(crbug.com/1025627): make webauth work with WebLayer.
::features::kWebAuth, ::features::kSmsReceiver,
// TODO(crbug.com/1057106): make web-xr work with WebLayer.
::features::kWebXr,
#if defined(OS_ANDROID)
media::kPictureInPictureAPI,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment