| Index: content/renderer/render_view_impl.cc
|
| diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
|
| index 81b2c975cd4da79da85e0de6ce200d073e2dc95d..e520a33f9fc20339077e364b54fe300addc7d0ac 100644
|
| --- a/content/renderer/render_view_impl.cc
|
| +++ b/content/renderer/render_view_impl.cc
|
| @@ -1033,8 +1033,8 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
|
| settings->setDeviceSupportsMouse(prefs.device_supports_mouse);
|
| settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled);
|
|
|
| - WebRuntimeFeatures::enableImageColorProfiles(
|
| - prefs.image_color_profiles_enabled);
|
| + WebRuntimeFeatures::enableColorCorrectRendering(
|
| + prefs.color_correct_rendering_enabled);
|
| settings->setShouldRespectImageOrientation(
|
| prefs.should_respect_image_orientation);
|
|
|
| @@ -2700,14 +2700,8 @@ void RenderViewImpl::SetFocus(bool enable) {
|
| void RenderViewImpl::RenderWidgetDidSetColorProfile(
|
| const std::vector<char>& profile) {
|
| if (webview()) {
|
| - bool was_reset = (profile.size() == 1 && profile[0] == '0');
|
| -
|
| - if (was_reset) {
|
| - webview()->resetDeviceColorProfileForTesting();
|
| - } else {
|
| - WebVector<char> colorProfile = profile;
|
| - webview()->setDeviceColorProfile(colorProfile);
|
| - }
|
| + WebVector<char> colorProfile = profile;
|
| + webview()->setDeviceColorProfile(colorProfile);
|
| }
|
| }
|
|
|
|
|