summaryrefslogtreecommitdiffstats
path: root/content/shell/shell_web_contents_view_delegate_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'content/shell/shell_web_contents_view_delegate_mac.mm')
-rw-r--r--content/shell/shell_web_contents_view_delegate_mac.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/shell/shell_web_contents_view_delegate_mac.mm b/content/shell/shell_web_contents_view_delegate_mac.mm
index 05b1e50..ad66ab9 100644
--- a/content/shell/shell_web_contents_view_delegate_mac.mm
+++ b/content/shell/shell_web_contents_view_delegate_mac.mm
@@ -7,6 +7,7 @@
#import <Cocoa/Cocoa.h>
#include "base/command_line.h"
+#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/devtools_http_handler.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
@@ -267,7 +268,7 @@ void ShellWebContentsViewDelegate::ActionPerformed(int tag) {
ShellDevToolsDelegate* delegate =
browser_client->shell_browser_main_parts()->devtools_delegate();
GURL url = delegate->devtools_http_handler()->GetFrontendURL(
- web_contents_->GetRenderViewHost());
+ DevToolsAgentHost::GetFor(web_contents_->GetRenderViewHost()));
Shell::CreateNewWindow(web_contents_->GetBrowserContext(),
url,
NULL,