[messaging][cleanup] Avoid of ArrayBufferContents::DataHandle
Instead we can allocate ArrayBufferContents directly. I also added a check if allocation failed. I also changed the allocation to not initialize the memory. It is overwritten immediately afterwards anyways. R=jbroman Bug: chromium:1008840 Change-Id: I046c30f499f67ff437e481c907efdd38fa0d0045 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1864788Reviewed-by:Jeremy Roman <jbroman@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#706852}
Showing
Please register or sign in to comment