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

Unified Diff: content/renderer/render_widget.cc

Issue 561453004: Add RenderView ResetDeviceColorProfileForTesting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/renderer/render_widget.h ('k') | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index d9f620d58fb047e9637e434430a094712f9791ba..8cf0ae0735652ea30717f1baa56af0806975a309 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1659,6 +1659,12 @@ bool RenderWidget::SetDeviceColorProfile(
return true;
}
+void RenderWidget::ResetDeviceColorProfileForTesting() {
+ if (!device_color_profile_.empty())
+ device_color_profile_.clear();
+ device_color_profile_.push_back('0');
+}
+
void RenderWidget::OnOrientationChange() {
}
« no previous file with comments | « content/renderer/render_widget.h ('k') | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698