[NativeFS] Move creation/truncation of save files till after restricted folder check.
We shouldn't be creating or truncating files if the access to the directory is going to be blocked by the restricted folder checks. So swap around the order of the two operations. Bug: 999788 Change-Id: I0b7519e079f79f4cb031f8f5d1d905fee1bbbb60 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1783725 Commit-Queue: Marijn Kruisselbrink <mek@chromium.org> Commit-Queue: Victor Costan <pwnall@chromium.org> Reviewed-by:Victor Costan <pwnall@chromium.org> Cr-Commit-Position: refs/heads/master@{#692940}
Showing
Please register or sign in to comment