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

Unified Diff: ui/display/mac/screen_mac.mm

Issue 2945453002: color: Use base::Feature to control color correct rendering (Closed)
Patch Set: Add histogram enum Created 3 years, 6 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
« no previous file with comments | « ui/compositor/compositor_util.cc ('k') | ui/gfx/color_space_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/mac/screen_mac.mm
diff --git a/ui/display/mac/screen_mac.mm b/ui/display/mac/screen_mac.mm
index d74ab25c5c70c72d5130db68c8df71f930d54f67..d9d0734584e936e14bec5e06c5288cb54a9112bc 100644
--- a/ui/display/mac/screen_mac.mm
+++ b/ui/display/mac/screen_mac.mm
@@ -84,8 +84,7 @@ Display BuildDisplayForScreen(NSScreen* screen) {
// https://crbug.com/654488
CGColorSpaceRef color_space = [[screen colorSpace] CGColorSpace];
static bool color_correct_rendering_enabled =
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableColorCorrectRendering);
+ base::FeatureList::IsEnabled(features::kColorCorrectRendering);
if (base::mac::IsAtLeastOS10_12() && !color_correct_rendering_enabled)
color_space = base::mac::GetSystemColorSpace();
« no previous file with comments | « ui/compositor/compositor_util.cc ('k') | ui/gfx/color_space_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698