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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.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/InspectorDOMAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
index a5a0c56983a72f15a092090d965ecdb7985f50bc..d0f7aa63ddb3d1419256698635d328254dbba643 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
@@ -70,7 +70,6 @@
#include "core/inspector/InspectedFrames.h"
#include "core/inspector/InspectorHighlight.h"
#include "core/inspector/InspectorHistory.h"
-#include "core/inspector/InspectorState.h"
#include "core/inspector/InstrumentingAgents.h"
#include "core/inspector/RemoteObjectId.h"
#include "core/layout/HitTestResult.h"
@@ -529,7 +528,7 @@ void InspectorDOMAgent::enable(ErrorString*)
bool InspectorDOMAgent::enabled() const
{
- return m_state->getBoolean(DOMAgentState::domAgentEnabled);
+ return m_state->booleanProperty(DOMAgentState::domAgentEnabled, false);
}
void InspectorDOMAgent::disable(ErrorString* errorString)

Powered by Google App Engine
This is Rietveld 408576698