Call InspectElement directly on InspectableWebContents
This commit is contained in:
parent
d6eb0d6629
commit
443040e8d7
1 changed files with 1 additions and 4 deletions
|
@ -1062,10 +1062,7 @@ void WebContents::InspectElement(int x, int y) {
|
||||||
|
|
||||||
if (!managed_web_contents()->GetDevToolsWebContents())
|
if (!managed_web_contents()->GetDevToolsWebContents())
|
||||||
OpenDevTools(nullptr);
|
OpenDevTools(nullptr);
|
||||||
scoped_refptr<content::DevToolsAgentHost> agent(
|
managed_web_contents()->InspectElement(x, y);
|
||||||
content::DevToolsAgentHost::GetOrCreateFor(web_contents()));
|
|
||||||
// FIXME(zcbenz): Figure out how to implement this for Chrome 54.
|
|
||||||
agent->InspectElement(nullptr, x, y);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebContents::InspectServiceWorker() {
|
void WebContents::InspectServiceWorker() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue