| Index: third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp
|
| index 4a7a0593e03a496068e16024d1a95163e9056ffb..d5d0aa1bb61f9f7c883290c86ba834c6c4f3eecf 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp
|
| @@ -121,11 +121,11 @@ public:
|
| String16 m_title;
|
| };
|
|
|
| -V8ProfilerAgentImpl::V8ProfilerAgentImpl(V8InspectorSessionImpl* session)
|
| +V8ProfilerAgentImpl::V8ProfilerAgentImpl(V8InspectorSessionImpl* session, protocol::Frontend::Profiler* frontend, protocol::DictionaryValue* state)
|
| : m_session(session)
|
| , m_isolate(m_session->debugger()->isolate())
|
| - , m_state(nullptr)
|
| - , m_frontend(nullptr)
|
| + , m_state(state)
|
| + , m_frontend(frontend)
|
| , m_enabled(false)
|
| , m_recordingCPUProfile(false)
|
| {
|
| @@ -211,14 +211,6 @@ void V8ProfilerAgentImpl::setSamplingInterval(ErrorString* error, int interval)
|
| m_isolate->GetCpuProfiler()->SetSamplingInterval(interval);
|
| }
|
|
|
| -void V8ProfilerAgentImpl::clearFrontend()
|
| -{
|
| - ErrorString error;
|
| - disable(&error);
|
| - DCHECK(m_frontend);
|
| - m_frontend = nullptr;
|
| -}
|
| -
|
| void V8ProfilerAgentImpl::restore()
|
| {
|
| DCHECK(!m_enabled);
|
|
|