Index: src/inspector/v8-console-agent-impl.cc |
diff --git a/src/inspector/v8-console-agent-impl.cc b/src/inspector/v8-console-agent-impl.cc |
index 8eb883cb754c4410ed2e81b70c39681026b28d4f..6b0e12a77b281ff6515dc731bf3a5a1e4d483872 100644 |
--- a/src/inspector/v8-console-agent-impl.cc |
+++ b/src/inspector/v8-console-agent-impl.cc |
@@ -26,28 +26,29 @@ V8ConsoleAgentImpl::V8ConsoleAgentImpl( |
V8ConsoleAgentImpl::~V8ConsoleAgentImpl() {} |
-void V8ConsoleAgentImpl::enable(ErrorString* errorString) { |
- if (m_enabled) return; |
+Response V8ConsoleAgentImpl::enable() { |
+ if (m_enabled) return Response::OK(); |
m_state->setBoolean(ConsoleAgentState::consoleEnabled, true); |
m_enabled = true; |
m_session->inspector()->enableStackCapturingIfNeeded(); |
reportAllMessages(); |
+ return Response::OK(); |
} |
-void V8ConsoleAgentImpl::disable(ErrorString* errorString) { |
- if (!m_enabled) return; |
+Response V8ConsoleAgentImpl::disable() { |
+ if (!m_enabled) return Response::OK(); |
m_session->inspector()->disableStackCapturingIfNeeded(); |
m_state->setBoolean(ConsoleAgentState::consoleEnabled, false); |
m_enabled = false; |
+ return Response::OK(); |
} |
-void V8ConsoleAgentImpl::clearMessages(ErrorString* errorString) {} |
+Response V8ConsoleAgentImpl::clearMessages() { return Response::OK(); } |
void V8ConsoleAgentImpl::restore() { |
if (!m_state->booleanProperty(ConsoleAgentState::consoleEnabled, false)) |
return; |
- ErrorString ignored; |
- enable(&ignored); |
+ enable(); |
} |
void V8ConsoleAgentImpl::messageAdded(V8ConsoleMessage* message) { |