summaryrefslogtreecommitdiffstats
path: root/chromecast/browser/cast_content_browser_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromecast/browser/cast_content_browser_client.cc')
-rw-r--r--chromecast/browser/cast_content_browser_client.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chromecast/browser/cast_content_browser_client.cc b/chromecast/browser/cast_content_browser_client.cc
index cf34a67..8827e85 100644
--- a/chromecast/browser/cast_content_browser_client.cc
+++ b/chromecast/browser/cast_content_browser_client.cc
@@ -270,6 +270,9 @@ void CastContentBrowserClient::OverrideWebkitPrefs(
// to retrieve media data chunks while running in a https page. This pref
// should be disabled once all the content providers are no longer doing that.
prefs->allow_running_insecure_content = true;
+
+ // Enable 5% margins for WebVTT cues to keep within title-safe area
+ prefs->text_track_margin_percentage = 5;
}
void CastContentBrowserClient::ResourceDispatcherHostCreated() {