DescriptionDevTools: minor improvements of CodeGenerator code.
result declaration was moved close to the usage:
TypeBuilder::HeapProfiler::HeapSnapshotObjectId out_heapSnapshotObjectId;
- RefPtr<JSONObject> result = JSONObject::create();
if (protocolErrors->length()) {
reportProtocolError(&callId, InvalidParams, String::format(InvalidParamsFormatString, commandName(kHeapProfiler_getHeapObjectIdCmd)), protocolErrors);
return;
}
ErrorString error;
+ RefPtr<JSONObject> result = JSONObject::create();
m_heapProfilerAgent->getHeapObjectId(&error, in_objectId, &out_heapSnapshotObjectId);
if (!error.length()) {
result->setString("heapSnapshotObjectId", out_heapSnapshotObjectId);
BUG=
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175888
Patch Set 1 #
Total comments: 6
Messages
Total messages: 6 (0 generated)
|