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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorRuntimeAgent.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/InspectorRuntimeAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorRuntimeAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorRuntimeAgent.cpp
index 133c086906267601c25cf8e1f172af0d5540d6d7..79e2d4bb416e68aaf38e3a4cefc20758c800f701 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorRuntimeAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorRuntimeAgent.cpp
@@ -33,7 +33,6 @@
#include "bindings/core/v8/ScriptState.h"
#include "core/inspector/InjectedScript.h"
#include "core/inspector/InjectedScriptManager.h"
-#include "core/inspector/InspectorState.h"
#include "core/inspector/MuteConsoleScope.h"
#include "core/inspector/RemoteObjectId.h"
#include "core/inspector/v8/V8Debugger.h"
@@ -62,8 +61,9 @@ InspectorRuntimeAgent::~InspectorRuntimeAgent()
}
// InspectorBaseAgent overrides.
-void InspectorRuntimeAgent::init()
+void InspectorRuntimeAgent::setState(PassRefPtr<JSONObject> state)
{
+ InspectorBaseAgent::setState(state);
m_v8RuntimeAgent->setInspectorState(m_state);
}
@@ -81,7 +81,7 @@ void InspectorRuntimeAgent::clearFrontend()
void InspectorRuntimeAgent::restore()
{
- if (!m_state->getBoolean(InspectorRuntimeAgentState::runtimeEnabled))
+ if (!m_state->booleanProperty(InspectorRuntimeAgentState::runtimeEnabled, false))
return;
m_v8RuntimeAgent->restore();
ErrorString errorString;

Powered by Google App Engine
This is Rietveld 408576698