Commit 3b889302 authored by Dan Beam's avatar Dan Beam Committed by Commit Bot

Dark Mode: add a base::Feature to respond to dark mode in WebUI

Example combined usage CL: https://crrev.com/c/1354685

BUG=883049
R=thestig@chromium.org

Change-Id: Ie6f44e2095a0c59738acec58b478b5a5e22bbd2f
Reviewed-on: https://chromium-review.googlesource.com/c/1357627Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Commit-Queue: Dan Beam <dbeam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612896}
parent 9d97f646
......@@ -13,4 +13,11 @@ const base::Feature kDoubleTapToZoomInTabletMode{
"DoubleTapToZoomInTabletMode", base::FEATURE_DISABLED_BY_DEFAULT};
#endif
#if !defined(OS_ANDROID)
// Whether to enable "dark mode" enhancements in Mac Mojave or Windows 10 for
// UIs implemented with web technologies.
const base::Feature kWebUIDarkMode{"WebUIDarkMode",
base::FEATURE_DISABLED_BY_DEFAULT};
#endif
} // namespace features
......@@ -9,6 +9,7 @@
#define CHROME_BROWSER_BROWSER_FEATURES_H_
#include "base/feature_list.h"
#include "build/build_config.h"
namespace features {
......@@ -19,6 +20,10 @@ namespace features {
extern const base::Feature kDoubleTapToZoomInTabletMode;
#endif
#if !defined(OS_ANDROID)
extern const base::Feature kWebUIDarkMode;
#endif
} // namespace features
#endif // CHROME_BROWSER_BROWSER_FEATURES_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment