| Index: third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| index d32cd3fec30d170d98e596b2a9498ef7cf2965be..5e305410302e7b7c3c055be20ae2a796e6b1dc34 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| @@ -362,7 +362,7 @@ void V8RuntimeAgentImpl::enable(ErrorString* errorString)
|
| {
|
| if (m_enabled)
|
| return;
|
| - m_session->changeInstrumentationCounter(+1);
|
| + m_session->client()->runtimeEnabled();
|
| m_enabled = true;
|
| m_state->setBoolean(V8RuntimeAgentImplState::runtimeEnabled, true);
|
| v8::HandleScope handles(m_debugger->isolate());
|
| @@ -377,7 +377,7 @@ void V8RuntimeAgentImpl::disable(ErrorString* errorString)
|
| m_state->setBoolean(V8RuntimeAgentImplState::runtimeEnabled, false);
|
| m_session->discardInjectedScripts();
|
| reset();
|
| - m_session->changeInstrumentationCounter(-1);
|
| + m_session->client()->runtimeDisabled();
|
| }
|
|
|
| void V8RuntimeAgentImpl::reset()
|
|
|