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

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

Issue 1738073002: DevTools: introduce protocol::Value, baseline for hierarchical data in remote debugging protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 206bbdc75ac74c53ce0903cd9d79419b8d5ffe31..008dd3e76a2178d01b2c777f4c412a7adfa10aa3 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
@@ -318,7 +318,7 @@ bool InspectorDebuggerAgent::isPaused()
void InspectorDebuggerAgent::scriptExecutionBlockedByCSP(const String& directiveText)
{
- RefPtr<JSONObject> directive = JSONObject::create();
+ RefPtr<protocol::DictionaryValue> directive = protocol::DictionaryValue::create();
directive->setString("directiveText", directiveText);
m_v8DebuggerAgent->breakProgramOnException(protocol::Debugger::Paused::ReasonEnum::CSPViolation, directive.release());
}
@@ -334,7 +334,7 @@ void InspectorDebuggerAgent::didExecuteScript()
}
// InspectorBaseAgent overrides.
-void InspectorDebuggerAgent::setState(PassRefPtr<JSONObject> state)
+void InspectorDebuggerAgent::setState(PassRefPtr<protocol::DictionaryValue> state)
{
InspectorBaseAgent::setState(state);
m_v8DebuggerAgent->setInspectorState(m_state);

Powered by Google App Engine
This is Rietveld 408576698