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

Unified Diff: content/renderer/render_view_impl.cc

Issue 592753003: Notify RenderView webview() when the device color profile changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android stl compile fix. Created 6 years, 3 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 | « no previous file | no next file » | 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 eba0382f3453be34ace76c5ecbc5423274f14451..a5f404ba3a3d63a05e8981cae22fe986fdaa89c3 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -3685,8 +3685,8 @@ bool RenderViewImpl::SetDeviceColorProfile(
const std::vector<char>& profile) {
bool changed = RenderWidget::SetDeviceColorProfile(profile);
if (changed && webview()) {
- // TODO(noel): notify the webview() of the color profile change so it
- // can update and repaint all color profiled page elements.
+ WebVector<char> colorProfile = profile;
+ webview()->setDeviceColorProfile(colorProfile);
Noel Gordon 2014/09/22 17:15:02 webview()->setDeviceColorProfile(profile); also wo
Noel Gordon 2014/09/30 03:52:48 Refer to https://codereview.chromium.org/261633002
}
return changed;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698