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

Unified Diff: content/shell/app/shell_main_delegate.cc

Issue 2925473002: color: Disable Javascript setColorSpace with color correct rendering (Closed)
Patch Set: Clean up 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 | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/app/shell_main_delegate.cc
diff --git a/content/shell/app/shell_main_delegate.cc b/content/shell/app/shell_main_delegate.cc
index 59ced11f36ad1c8fd00d193f985bfcb1a231bb47..e98bd852af77fa12d207b0151a2b2bcbd966ee42 100644
--- a/content/shell/app/shell_main_delegate.cc
+++ b/content/shell/app/shell_main_delegate.cc
@@ -218,8 +218,12 @@ bool ShellMainDelegate::BasicStartupComplete(int* exit_code) {
// other platforms).
if (!command_line.HasSwitch(switches::kForceColorProfile)) {
#if defined(OS_MACOSX)
- command_line.AppendSwitchASCII(switches::kForceColorProfile,
- "generic-rgb");
+ if (command_line.HasSwitch(switches::kEnableColorCorrectRendering)) {
+ command_line.AppendSwitchASCII(switches::kForceColorProfile, "srgb");
+ } else {
+ command_line.AppendSwitchASCII(switches::kForceColorProfile,
+ "generic-rgb");
+ }
#else
command_line.AppendSwitchASCII(switches::kForceColorProfile, "srgb");
#endif
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698