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())
|
||||
OpenDevTools(nullptr);
|
||||
scoped_refptr<content::DevToolsAgentHost> agent(
|
||||
content::DevToolsAgentHost::GetOrCreateFor(web_contents()));
|
||||
// FIXME(zcbenz): Figure out how to implement this for Chrome 54.
|
||||
agent->InspectElement(nullptr, x, y);
|
||||
managed_web_contents()->InspectElement(x, y);
|
||||
}
|
||||
|
||||
void WebContents::InspectServiceWorker() {
|
||||
|
|
Loading…
Add table
Reference in a new issue