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

Unified Diff: ui/native_theme/native_theme_switches.cc

Issue 2806263005: Convert the overlay scrollbar flag to use FeatureList (Closed)
Patch Set: update histograms.xml Created 3 years, 8 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: 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
deleted file mode 100644
index 1d8f8b3bf60d3c07b4633957617e3e47d7d3c8c1..0000000000000000000000000000000000000000
--- a/ui/native_theme/native_theme_switches.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/command_line.h"
-#include "ui/native_theme/native_theme_switches.h"
-
-namespace switches {
-
-// Enables or disables overlay scrollbars in Blink (i.e. web content) on Aura
-// or Linux. The status of native UI overlay scrollbars are determined in
-// PlatformStyle::CreateScrollBar. Does nothing on Mac.
-const char kEnableOverlayScrollbar[] = "enable-overlay-scrollbar";
-const char kDisableOverlayScrollbar[] = "disable-overlay-scrollbar";
-
-} // namespace switches
-
-namespace ui {
-
-bool IsOverlayScrollbarEnabled() {
- const base::CommandLine& command_line =
- *base::CommandLine::ForCurrentProcess();
-
- if (command_line.HasSwitch(switches::kDisableOverlayScrollbar))
- return false;
-
-#if defined(OS_CHROMEOS)
- return true;
-#else
- return command_line.HasSwitch(switches::kEnableOverlayScrollbar);
-#endif
-}
-
-} // namespace ui
« ui/native_theme/native_theme_features.cc ('K') | « ui/native_theme/native_theme_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698