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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2873203003: color: Add --force-color-profile command line flag (Closed)
Patch Set: Created 3 years, 7 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/public/renderer/content_renderer_client.cc ('k') | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index b8376f250824369ce847feeb5c1e35da6f864d55..0b7e8f2b1363da69e162d97606139796fd94f6ce 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -641,13 +641,7 @@ void RenderViewImpl::Initialize(
!command_line.HasSwitch(switches::kDisableThreadedScrolling));
webview()->SetShowFPSCounter(
command_line.HasSwitch(cc::switches::kShowFPSCounter));
-
- if (std::unique_ptr<gfx::ICCProfile> overridden_color_profile =
- GetContentClient()->renderer()->GetImageDecodeColorProfile()) {
- webview()->SetDeviceColorProfile(*overridden_color_profile);
- } else {
- webview()->SetDeviceColorProfile(params.image_decode_color_space);
- }
+ webview()->SetDeviceColorProfile(params.image_decode_color_space);
ApplyWebPreferencesInternal(webkit_preferences_, webview(), compositor_deps_);
« no previous file with comments | « content/public/renderer/content_renderer_client.cc ('k') | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698