void InspectorDOMStorageAgent::setDOMStorageItem(ErrorString* errorString, const RefPtr<JSONObject>& storageId, const String& key, const String& value) { LocalFrame* frame; OwnPtrWillBeRawPtr<StorageArea> storageArea = findStorageArea(0, storageId, frame); if (!storageArea) { *errorString = "Storage not found"; return; } TrackExceptionState exceptionState; storageArea->setItem(key, value, exceptionState, frame); *errorString = toErrorString(exceptionState); }