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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.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/core/inspector/InspectorDOMDebuggerAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
index bad4b224ad4551de0fc1d205bf840759fa058929..e49c67ae5978a43d6428914b444c665a3414115e 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
@@ -183,7 +183,7 @@ static PassRefPtr<JSONObject> ensurePropertyObject(PassRefPtr<JSONObject> object
{
JSONObject::iterator it = object->find(propertyName);
if (it != object->end())
- return it->value->asObject();
+ return JSONObject::cast(it->value);
RefPtr<JSONObject> result = JSONObject::create();
object->setObject(propertyName, result);
@@ -537,7 +537,7 @@ PassRefPtr<JSONObject> InspectorDOMDebuggerAgent::preparePauseOnNativeEventData(
if (it == breakpoints->end())
return nullptr;
bool match = false;
- RefPtr<JSONObject> breakpointsByTarget = it->value->asObject();
+ RefPtr<JSONObject> breakpointsByTarget = JSONObject::cast(it->value);
breakpointsByTarget->getBoolean(DOMDebuggerAgentState::eventTargetAny, &match);
if (!match && targetName)
breakpointsByTarget->getBoolean(targetName->lower(), &match);
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorBaseAgent.cpp ('k') | third_party/WebKit/Source/platform/JSONParserTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698