| Index: content/test/content_browser_test.cc
|
| diff --git a/content/test/content_browser_test.cc b/content/test/content_browser_test.cc
|
| index a86569f9da975f76f6eccbc46fecf7a4322f3a1c..7173515261e24711953489d542228a26e8e0ccfe 100644
|
| --- a/content/test/content_browser_test.cc
|
| +++ b/content/test/content_browser_test.cc
|
| @@ -93,8 +93,10 @@ void ContentBrowserTest::TearDown() {
|
| }
|
|
|
| void ContentBrowserTest::RunTestOnMainThreadLoop() {
|
| - CHECK_EQ(Shell::windows().size(), 1u);
|
| - shell_ = Shell::windows()[0];
|
| + if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) {
|
| + CHECK_EQ(Shell::windows().size(), 1u);
|
| + shell_ = Shell::windows()[0];
|
| + }
|
|
|
| #if defined(OS_MACOSX)
|
| // On Mac, without the following autorelease pool, code which is directly
|
|
|