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

Unified Diff: ui/native_theme/native_theme_switches.cc

Issue 2480903002: Enable overlay scrollbars on ChromeOS (Closed)
Patch Set: Fixed PhishingDOMFeatureExtractor test Created 4 years, 1 month 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
« no previous file with comments | « content/test/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_switches.cc
diff --git a/ui/native_theme/native_theme_switches.cc b/ui/native_theme/native_theme_switches.cc
index 873af518985c1dc6226256118424e2a6493dd086..98a67ccd9e2f0d4c0fdcfcc821e6a7b9b0f6415d 100644
--- a/ui/native_theme/native_theme_switches.cc
+++ b/ui/native_theme/native_theme_switches.cc
@@ -23,10 +23,12 @@ bool IsOverlayScrollbarEnabled() {
if (command_line.HasSwitch(switches::kDisableOverlayScrollbar))
return false;
- else if (command_line.HasSwitch(switches::kEnableOverlayScrollbar))
- return true;
- return false;
+#if defined(OS_CHROMEOS)
+ return true;
+#else
+ return command_line.HasSwitch(switches::kEnableOverlayScrollbar);
+#endif
}
} // namespace ui
« no previous file with comments | « content/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698