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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/RemoteObjectId.cpp

Issue 1728873002: DevTools: simplify JSONValues API, prepare to the OwnPtr migration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselines 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/platform/v8_inspector/RemoteObjectId.cpp
diff --git a/third_party/WebKit/Source/platform/v8_inspector/RemoteObjectId.cpp b/third_party/WebKit/Source/platform/v8_inspector/RemoteObjectId.cpp
index d15b0cf9dc00f4575d41b68b698de648c48e9419..35542df790e3809fc77a68827a84b977c68bfc2b 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/RemoteObjectId.cpp
+++ b/third_party/WebKit/Source/platform/v8_inspector/RemoteObjectId.cpp
@@ -20,7 +20,7 @@ PassRefPtr<JSONObject> RemoteObjectIdBase::parseInjectedScriptId(const String& o
if (!parsedValue || parsedValue->type() != JSONValue::TypeObject)
return nullptr;
- RefPtr<JSONObject> parsedObjectId = parsedValue->asObject();
+ RefPtr<JSONObject> parsedObjectId = JSONObject::cast(parsedValue.release());
bool success = parsedObjectId->getNumber("injectedScriptId", &m_injectedScriptId);
if (success)
return parsedObjectId.release();

Powered by Google App Engine
This is Rietveld 408576698