Rearrange PNaCl OnNexeTempFileReply file check to be *before* transferring ownership.
Otherwise, after transferring ownership the old base_file will always be invalid and we get spurious error logs, which can be confusing. This started happening after the refactoring in r274783. https://codereview.chromium.org/307173002/diff/80001/components/nacl/renderer/pnacl_translation_resource_host.cc Alternatively, could have checked the file_handle variable that ends up owning the base_file at the later point, but might as well check it earlier. BUG=none (but it bugged ncbray =)) Review URL: https://codereview.chromium.org/982663002 Cr-Commit-Position: refs/heads/master@{#319170}
Showing
Please register or sign in to comment