Index: content/shell/browser/layout_test/layout_test_devtools_frontend.cc |
diff --git a/content/shell/browser/layout_test/layout_test_devtools_frontend.cc b/content/shell/browser/layout_test/layout_test_devtools_frontend.cc |
index c8941c616bfc799e4350cc95bd752c2dcb6ba6f0..a9c1af339010e2909ad51d86fd8ed8b32a2f96b5 100644 |
--- a/content/shell/browser/layout_test/layout_test_devtools_frontend.cc |
+++ b/content/shell/browser/layout_test/layout_test_devtools_frontend.cc |
@@ -33,15 +33,6 @@ LayoutTestDevToolsFrontend* LayoutTestDevToolsFrontend::Show( |
return devtools_frontend; |
} |
-LayoutTestDevToolsFrontend::LayoutTestDevToolsFrontend( |
- Shell* frontend_shell, |
- DevToolsAgentHost* agent_host) |
- : ShellDevToolsFrontend(frontend_shell, agent_host) { |
-} |
- |
-LayoutTestDevToolsFrontend::~LayoutTestDevToolsFrontend() { |
-} |
- |
// static. |
GURL LayoutTestDevToolsFrontend::GetDevToolsPathAsURL( |
const std::string& settings, |
@@ -70,6 +61,27 @@ GURL LayoutTestDevToolsFrontend::GetDevToolsPathAsURL( |
return result; |
} |
+void LayoutTestDevToolsFrontend::ReuseFrontend(WebContents* inspected_contents, |
+ const std::string& settings, |
+ const std::string frontend_url) { |
+ AttachTo(inspected_contents); |
+ frontend_shell()->LoadURL(GetDevToolsPathAsURL(settings, frontend_url)); |
+} |
+ |
+LayoutTestDevToolsFrontend::LayoutTestDevToolsFrontend( |
+ Shell* frontend_shell, |
+ DevToolsAgentHost* agent_host) |
+ : ShellDevToolsFrontend(frontend_shell, agent_host) { |
+} |
+ |
+LayoutTestDevToolsFrontend::~LayoutTestDevToolsFrontend() { |
+} |
+ |
+void LayoutTestDevToolsFrontend::AgentHostClosed( |
+ DevToolsAgentHost* agent_host, bool replaced) { |
+ // Do not close the front-end shell. |
+} |
+ |
void LayoutTestDevToolsFrontend::RenderProcessGone( |
base::TerminationStatus status) { |
WebKitTestController::Get()->DevToolsProcessCrashed(); |