Index: content/renderer/render_view_impl.cc |
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
index 48ae4541de43d3642a33f5251101a42c19c58fc0..aaf02fa149a24eee51e18465063bd3c5316a697d 100644 |
--- a/content/renderer/render_view_impl.cc |
+++ b/content/renderer/render_view_impl.cc |
@@ -720,7 +720,13 @@ void RenderViewImpl::Initialize(const ViewMsg_New_Params& params, |
command_line.HasSwitch(switches::kRootLayerScrolls)); |
webview()->setShowFPSCounter( |
command_line.HasSwitch(cc::switches::kShowFPSCounter)); |
- webview()->setDeviceColorProfile(params.image_decode_color_space.GetData()); |
+ |
+ if (auto overridden_color_profile = |
+ GetContentClient()->renderer()->GetImageDecodeColorProfile()) { |
+ webview()->setDeviceColorProfile(overridden_color_profile->GetData()); |
+ } else { |
+ webview()->setDeviceColorProfile(params.image_decode_color_space.GetData()); |
+ } |
ApplyWebPreferencesInternal(webkit_preferences_, webview(), compositor_deps_); |