From: Kevin Sawicki Date: Tue, 20 Dec 2016 00:25:32 +0000 (-0800) Subject: Call InspectElement directly on InspectableWebContents X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=443040e8d7c2f7092b19f49e4c3c8a35c6dd83db;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Call InspectElement directly on InspectableWebContents --- diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 3d1c247..c4762c1 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -1062,10 +1062,7 @@ void WebContents::InspectElement(int x, int y) { if (!managed_web_contents()->GetDevToolsWebContents()) OpenDevTools(nullptr); - scoped_refptr 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() {