Add base::File constructors that take ScopedPlatformFile.
In base::File, |file_| is a ScopedPlatformFile. So add constructors that can take a ScopedPlatformFile directly, instead of having the caller release the PlatformFile, and then rewrapping it. Change-Id: Ie70cacc0a47263ff9ec5ce38f84032f1e469faa3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1948195Reviewed-by:Nico Weber <thakis@chromium.org> Reviewed-by:
Joe Downing <joedow@chromium.org> Reviewed-by:
Sergey Ulanov <sergeyu@chromium.org> Reviewed-by:
Ken Rockot <rockot@google.com> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#721736}
Showing
Please register or sign in to comment