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

Unified Diff: third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.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/v8/V8RuntimeAgentImpl.cpp
diff --git a/third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp b/third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp
index 00eac3118350154ea1e2049eb2ec05eb92006107..b376397d36d71e2507ff5941c216f47c02a1e4e7 100644
--- a/third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp
+++ b/third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.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/RemoteObjectId.h"
#include "core/inspector/v8/IgnoreExceptionsScope.h"
#include "core/inspector/v8/V8Debugger.h"
@@ -171,7 +170,7 @@ void V8RuntimeAgentImpl::setCustomObjectFormatterEnabled(ErrorString*, bool enab
injectedScriptManager()->setCustomObjectFormatterEnabled(enabled);
}
-void V8RuntimeAgentImpl::setInspectorState(InspectorState* state)
+void V8RuntimeAgentImpl::setInspectorState(PassRefPtr<JSONObject> state)
{
m_state = state;
}
@@ -194,7 +193,7 @@ void V8RuntimeAgentImpl::restore()
m_frontend->executionContextsCleared();
String error;
enable(&error);
- if (m_state->getBoolean(V8RuntimeAgentImplState::customObjectFormatterEnabled))
+ if (m_state->booleanProperty(V8RuntimeAgentImplState::customObjectFormatterEnabled, false))
injectedScriptManager()->setCustomObjectFormatterEnabled(true);
}

Powered by Google App Engine
This is Rietveld 408576698