summaryrefslogtreecommitdiffstats
path: root/content/shell/shell.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/shell/shell.cc')
-rw-r--r--content/shell/shell.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/shell/shell.cc b/content/shell/shell.cc
index 0d32f0f..903d6e60 100644
--- a/content/shell/shell.cc
+++ b/content/shell/shell.cc
@@ -22,6 +22,7 @@
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view.h"
#include "content/public/common/renderer_preferences.h"
+#include "content/shell/notify_done_forwarder.h"
#include "content/shell/shell_browser_main_parts.h"
#include "content/shell/shell_content_browser_client.h"
#include "content/shell/shell_devtools_frontend.h"
@@ -263,6 +264,8 @@ void Shell::WebContentsCreated(WebContents* source_contents,
const GURL& target_url,
WebContents* new_contents) {
CreateShell(new_contents);
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree))
+ NotifyDoneForwarder::CreateForWebContents(new_contents);
}
void Shell::DidNavigateMainFramePostCommit(WebContents* web_contents) {