Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp

Issue 1621923002: [DevTools] Remove InspectorState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
index 8f6c5047013a43aa238201f9a300f6cad4c1ab9f..761fb9df924764b2c7959dcf1b585022a7422106 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
@@ -31,7 +31,6 @@
#include "bindings/core/v8/V8Binding.h"
#include "core/inspector/AsyncCallTracker.h"
-#include "core/inspector/InspectorState.h"
#include "core/inspector/MuteConsoleScope.h"
#include "core/inspector/ScriptAsyncCallStack.h"
#include "core/inspector/v8/V8Debugger.h"
@@ -289,9 +288,14 @@ void InspectorDebuggerAgent::didExecuteScript()
}
// InspectorBaseAgent overrides.
-void InspectorDebuggerAgent::init()
+void InspectorDebuggerAgent::setState(PassRefPtr<JSONObject> state)
{
+ InspectorBaseAgent::setState(state);
m_v8DebuggerAgent->setInspectorState(m_state);
+}
+
+void InspectorDebuggerAgent::init()
+{
m_asyncCallTracker = adoptPtrWillBeNoop(new AsyncCallTracker(m_v8DebuggerAgent.get(), m_instrumentingAgents.get()));
}
@@ -309,7 +313,7 @@ void InspectorDebuggerAgent::clearFrontend()
void InspectorDebuggerAgent::restore()
{
- if (!m_state->getBoolean(DebuggerAgentState::debuggerEnabled))
+ if (!m_state->booleanProperty(DebuggerAgentState::debuggerEnabled, false))
return;
m_v8DebuggerAgent->restore();
ErrorString errorString;

Powered by Google App Engine
This is Rietveld 408576698