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

Unified Diff: content/shell/webkit_test_controller.cc

Issue 11586008: [content shell] if the document is plain text, dump it as text (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years 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/shell/webkit_test_controller.cc
diff --git a/content/shell/webkit_test_controller.cc b/content/shell/webkit_test_controller.cc
index 858e0d968c3d33c2608ad9d89b29f43504145e79..7180b08ff2e4f0eee3936ca3c6b4760b615c5c0b 100644
--- a/content/shell/webkit_test_controller.cc
+++ b/content/shell/webkit_test_controller.cc
@@ -274,6 +274,11 @@ void WebKitTestController::CaptureDump() {
return;
captured_dump_ = true;
+ if (main_window_->web_contents()->GetContentsMimeType() == "text/plain") {
+ dump_as_text_ = true;
+ enable_pixel_dumping_ = false;
+ }
+
RenderViewHost* render_view_host =
main_window_->web_contents()->GetRenderViewHost();
« 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