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

Unified Diff: chromecast/browser/cast_content_browser_client.cc

Issue 2339873002: Replace hide-scrollbars flag with a web setting. (Closed)
Patch Set: replace viewport test b/c overlay bars are hidden in layout tests. Created 4 years, 3 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
Index: chromecast/browser/cast_content_browser_client.cc
diff --git a/chromecast/browser/cast_content_browser_client.cc b/chromecast/browser/cast_content_browser_client.cc
index a4b1d4034aa6735fb3b20408a8d125053df795a0..473b16d29fe21b502961cf44501cda10b77fdf80 100644
--- a/chromecast/browser/cast_content_browser_client.cc
+++ b/chromecast/browser/cast_content_browser_client.cc
@@ -292,6 +292,8 @@ void CastContentBrowserClient::OverrideWebkitPrefs(
// Enable 5% margins for WebVTT cues to keep within title-safe area
prefs->text_track_margin_percentage = 5;
+ prefs->hide_scrollbars = true;
+
#if defined(OS_ANDROID)
// Enable the television style for viewport so that all cast apps have a
// 1280px wide layout viewport by default.

Powered by Google App Engine
This is Rietveld 408576698