Index: third_party/WebKit/Source/core/inspector/InspectorBaseAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.cpp |
index aa32554a2bfb5ebba80d44151a66959eb4cd4254..101bcf960d43e5c64ef6385df3fcdb5ca20430af 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.cpp |
@@ -92,7 +92,7 @@ void InspectorAgentRegistry::restore(const String& savedState) |
{ |
RefPtr<JSONValue> state = parseJSON(savedState); |
if (state) |
- m_state = state->asObject(); |
+ m_state = JSONObject::cast(state); |
if (!m_state) |
m_state = JSONObject::create(); |