Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index 6c7b014094565d089405290224ddb4cd87d17dc9..91807709798db4b55f4f597dbc42fdd1feca9d7f 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -389,7 +389,7 @@ void WebViewImpl::setDevToolsAgentClient(WebDevToolsAgentClient* devToolsClient) |
{ |
if (devToolsClient) { |
m_inspectorOverlay = InspectorOverlayImpl::create(this); |
- m_devToolsAgent = adoptPtrWillBeNoop(new WebDevToolsAgentImpl(this, devToolsClient, m_inspectorOverlay.get(), adoptPtrWillBeNoop(new InspectorInputClient(this)))); |
+ m_devToolsAgent = adoptPtrWillBeNoop(new WebDevToolsAgentImpl(this, devToolsClient, m_inspectorOverlay.get(), adoptPtr(new InspectorInputClient(this)))); |
m_devToolsAgent->registerAgent(InspectorRenderingAgent::create(this)); |
m_devToolsAgent->registerAgent(InspectorEmulationAgent::create(this)); |
} else { |