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

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

Issue 2490473004: [DevTools] Roll third_party/inspector_protocol to e23134c5aa6131e5a3a3afbefce255becce3a3bd. (Closed)
Patch Set: ui_devtools Created 4 years, 1 month 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/InspectorSession.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorSession.cpp b/third_party/WebKit/Source/core/inspector/InspectorSession.cpp
index 68211f0bfde9be2648b17fde6e217880cf3029c3..a8ef5379fe4401b964e1448e028982b526c58bca 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorSession.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorSession.cpp
@@ -31,7 +31,8 @@ InspectorSession::InspectorSession(Client* client,
m_instrumentingAgents(instrumentingAgents),
m_inspectorBackendDispatcher(new protocol::UberDispatcher(this)) {
if (savedState) {
- std::unique_ptr<protocol::Value> state = protocol::parseJSON(*savedState);
+ std::unique_ptr<protocol::Value> state =
+ protocol::StringUtil::parseJSON(*savedState);
if (state)
m_state = protocol::DictionaryValue::cast(std::move(state));
if (!m_state)
@@ -77,10 +78,12 @@ void InspectorSession::dispatchProtocolMessage(const String& method,
const String& message) {
DCHECK(!m_disposed);
if (v8_inspector::V8InspectorSession::canDispatchMethod(
- toV8InspectorStringView(method)))
+ toV8InspectorStringView(method))) {
m_v8Session->dispatchProtocolMessage(toV8InspectorStringView(message));
- else
- m_inspectorBackendDispatcher->dispatch(protocol::parseJSON(message));
+ } else {
+ m_inspectorBackendDispatcher->dispatch(
+ protocol::StringUtil::parseJSON(message));
+ }
}
void InspectorSession::didCommitLoadForLocalFrame(LocalFrame* frame) {

Powered by Google App Engine
This is Rietveld 408576698