Index: content/child/runtime_features.cc |
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc |
index 94a6f2aeed74a55b822f65ee552adb6128ff7049..7bb20ef1f619d30f19b3d6d891079910faa52f89 100644 |
--- a/content/child/runtime_features.cc |
+++ b/content/child/runtime_features.cc |
@@ -156,8 +156,12 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( |
if (command_line.HasSwitch(switches::kEnableWebGLImageChromium)) |
WebRuntimeFeatures::enableWebGLImageChromium(true); |
- if (command_line.HasSwitch(switches::kEnableOverlayFullscreenVideo)) |
- WebRuntimeFeatures::enableOverlayFullscreenVideo(true); |
+ // TODO(watk): Remove EnableOverlayFullscreenVideo once blink is updated to |
+ // use ForceOverlayFullscreenVideo instead. http://crbug.com/511376 |
+ if (command_line.HasSwitch(switches::kEnableOverlayFullscreenVideo) || |
+ command_line.HasSwitch(switches::kForceOverlayFullscreenVideo)) { |
+ WebRuntimeFeatures::forceOverlayFullscreenVideo(true); |
+ } |
if (ui::IsOverlayScrollbarEnabled()) |
WebRuntimeFeatures::enableOverlayScrollbars(true); |