Use existing BlobPtr when possible when converting blob to DataPipeGetter.
EncodedFormData already (optionally) contains a blink::BlobDataHandle, so rather than looking up the same blob again by uuid just use that handle if we have it. This should ensure no races are possible between a blob being dereferenced (in blink) and the blob being converted into a DataPipeGetter (as looking up the blob by UUID is an async operation). Bug: 740744, 821878 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo Change-Id: Ic8464b778ec91d10fdbd7688e2b680b9464fe1dc Reviewed-on: https://chromium-review.googlesource.com/964716 Commit-Queue: Marijn Kruisselbrink <mek@chromium.org> Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Cr-Commit-Position: refs/heads/master@{#543794}
Showing
Please register or sign in to comment