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

Unified Diff: content/child/runtime_features.cc

Issue 2239313002: Hide non-composited native scrollbars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use hidden overlay theme on all platforms. Created 4 years, 4 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: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 873f2c9d18c197bfc2c1b3281f26d9ebce6e0616..9bb94eee63767bb57def52fec90ea4ab0d25bda4 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -150,6 +150,8 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
if (ui::IsOverlayScrollbarEnabled())
WebRuntimeFeatures::enableOverlayScrollbars(true);
+ if (ui::ShouldHideScrollbars())
+ WebRuntimeFeatures::enableHideScrollbars(true);
if (command_line.HasSwitch(switches::kEnablePreciseMemoryInfo))
WebRuntimeFeatures::enablePreciseMemoryInfo(true);

Powered by Google App Engine
This is Rietveld 408576698