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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2875333003: color: Make layout tests specify color space by command line flag (Closed)
Patch Set: Rebaseline tests 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 0bc2afa62c5c66751717dbe44c640eb97e0d42e3..dc4863a431e10fba7fd8f80a90138b61c08cff74 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -632,13 +632,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