Fix DataPipe(capacity) constructor not to double-allocate.
The DataPipe(capacity) constructor was previously creating a DataPipe on the stack, using the DataPipe(options) constructor, but then not using it, and instead manually creating the pipe handles to return to the caller. Remove the wasted work, and clean up some ALLOW_UNUSED_LOCAL() that are no longer required, since DCHECKs in DataPipe() constructors were replaced with CHECKs. Bug: 892297, 890468 Change-Id: Id09cd7878faa9b796858169125ff6f05d19dc5f8 Reviewed-on: https://chromium-review.googlesource.com/c/1266602Reviewed-by:Ken Rockot <rockot@chromium.org> Commit-Queue: Wez <wez@chromium.org> Cr-Commit-Position: refs/heads/master@{#597623}
Showing
Please register or sign in to comment