Skip to content

Commit f94c2bd

Browse files
GnorTechrogerwang
authored andcommitted
fixup! rebase to Chromium 60
1 parent 4b881e1 commit f94c2bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/browser/nw_chrome_browser_hooks.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ bool CheckStoragePartitionMatches(int render_process_id, const GURL& url) {
136136
void ShowDevtools(bool show, content::WebContents* web_contents, content::WebContents* container) {
137137
content::RenderFrameHost* rfh = web_contents->GetMainFrame();
138138
if (container) {
139-
scoped_refptr<DevToolsAgentHost> agent_host(DevToolsAgentHost::GetOrCreateFor(rfh));
139+
scoped_refptr<DevToolsAgentHost> agent_host(DevToolsAgentHost::GetOrCreateFor(web_contents));
140140
g_cdt_process_id = container->GetRenderProcessHost()->GetID();
141141
content::ChildProcessSecurityPolicy::GetInstance()->GrantAll(g_cdt_process_id);
142142

@@ -157,7 +157,7 @@ void ShowDevtools(bool show, content::WebContents* web_contents, content::WebCon
157157
return;
158158
}
159159
scoped_refptr<DevToolsAgentHost> agent(
160-
DevToolsAgentHost::GetOrCreateFor(rfh));
160+
DevToolsAgentHost::GetOrCreateFor(web_contents));
161161
DevToolsWindow* window = DevToolsWindow::FindDevToolsWindow(agent.get());
162162
if (window)
163163
window->InspectedContentsClosing();

0 commit comments

Comments
 (0)