| 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 86601c1b80a06c55a41e13245864dd9253600491..908be168562bb017c051e38541ac07ed37ca287c 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| @@ -363,7 +363,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);
|
| m_session->debugger()->enableStackCapturingIfNeeded();
|
| @@ -384,7 +384,7 @@ void V8RuntimeAgentImpl::disable(ErrorString* errorString)
|
| m_session->debugger()->disableStackCapturingIfNeeded();
|
| m_session->discardInjectedScripts();
|
| reset();
|
| - m_session->changeInstrumentationCounter(-1);
|
| + m_session->client()->runtimeDisabled();
|
| }
|
|
|
| void V8RuntimeAgentImpl::reset()
|
|
|