Commit 1be226e1 authored by Robert Liao's avatar Robert Liao Committed by Commit Bot

Enable Material Refresh When MacViews is Enabled

We will not be shipping MacViews without Material Refresh.

BUG=857573

Change-Id: I8692fad1e7f56b51c7fc9913a1023db2722d9d39
Reviewed-on: https://chromium-review.googlesource.com/1119367
Commit-Queue: Robert Liao <robliao@chromium.org>
Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#572209}
parent 96eb702e
......@@ -10,8 +10,10 @@
#include "base/logging.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
#include "build/buildflag.h"
#include "ui/base/ui_base_features.h"
#include "ui/base/ui_base_switches.h"
#include "ui/base/ui_features.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/color_utils.h"
......@@ -169,6 +171,8 @@ MaterialDesignController::Mode MaterialDesignController::DefaultMode() {
#if defined(OS_WIN) || defined(OS_LINUX)
return MATERIAL_REFRESH;
#elif defined(OS_MACOSX) && BUILDFLAG(MAC_VIEWS_BROWSER)
return features::IsViewsBrowserCocoa() ? MATERIAL_NORMAL : MATERIAL_REFRESH;
#else
return MATERIAL_NORMAL;
#endif
......
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