| Index: third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp b/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
|
| index e68acb79f9b592ec0308b2a9a3213e276f0feb42..2f1df5b1efa90b09e958bc500182999cd0381405 100644
|
| --- a/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
|
| @@ -29,9 +29,6 @@
|
| */
|
|
|
| #include "web/WebDevToolsAgentImpl.h"
|
| -
|
| -#include <v8-inspector.h>
|
| -#include <memory>
|
|
|
| #include "bindings/core/v8/ScriptController.h"
|
| #include "bindings/core/v8/V8Binding.h"
|
| @@ -92,6 +89,8 @@
|
| #include "wtf/Noncopyable.h"
|
| #include "wtf/PtrUtil.h"
|
| #include "wtf/text/WTFString.h"
|
| +#include <memory>
|
| +#include <v8-inspector.h>
|
|
|
| namespace blink {
|
|
|
| @@ -270,12 +269,10 @@
|
| m_networkAgent(nullptr),
|
| m_layerTreeAgent(nullptr),
|
| m_tracingAgent(nullptr),
|
| - m_traceEventsAgent(new InspectorTraceEvents()),
|
| m_includeViewAgents(includeViewAgents),
|
| m_layerTreeId(0) {
|
| DCHECK(isMainThread());
|
| DCHECK(m_webLocalFrameImpl->frame());
|
| - m_instrumentingAgents->addInspectorTraceEvents(m_traceEventsAgent);
|
| }
|
|
|
| WebDevToolsAgentImpl::~WebDevToolsAgentImpl() {
|
| @@ -294,15 +291,12 @@
|
| visitor->trace(m_networkAgent);
|
| visitor->trace(m_layerTreeAgent);
|
| visitor->trace(m_tracingAgent);
|
| - visitor->trace(m_traceEventsAgent);
|
| visitor->trace(m_session);
|
| }
|
|
|
| void WebDevToolsAgentImpl::willBeDestroyed() {
|
| DCHECK(m_webLocalFrameImpl->frame());
|
| DCHECK(m_inspectedFrames->root()->view());
|
| - m_instrumentingAgents->removeInspectorTraceEvents(m_traceEventsAgent);
|
| - m_traceEventsAgent = nullptr;
|
| detach();
|
| m_resourceContentLoader->dispose();
|
| m_client = nullptr;
|
|
|