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

Unified Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 1185563002: Add --dump-line-box-trees parameter to content_shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Add braces to if one-liners. Created 5 years, 6 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/shell/common/shell_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/blink_test_runner.cc
diff --git a/content/shell/renderer/layout_test/blink_test_runner.cc b/content/shell/renderer/layout_test/blink_test_runner.cc
index ebba1156ae0383f3dde3da1a26788584a4c5b199..21df57f58da4fff10aeff05471c8f1e02b9991b1 100644
--- a/content/shell/renderer/layout_test/blink_test_runner.cc
+++ b/content/shell/renderer/layout_test/blink_test_runner.cc
@@ -784,8 +784,11 @@ void BlinkTestRunner::CaptureDump() {
interfaces->TestRunner()->GetAudioData(&vector_data);
Send(new ShellViewHostMsg_AudioDump(routing_id(), vector_data));
} else {
- Send(new ShellViewHostMsg_TextDump(routing_id(),
- proxy()->CaptureTree(false)));
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
+ Send(new ShellViewHostMsg_TextDump(
+ routing_id(), proxy()->CaptureTree(
+ false, command_line.HasSwitch(switches::kDumpLineBoxTrees))));
if (test_config_.enable_pixel_dumping &&
interfaces->TestRunner()->ShouldGeneratePixelResults()) {
« no previous file with comments | « content/shell/common/shell_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698