DescriptionPNaCl cleanup: Simplify error checking when opening temp files
TempFile::CheckValidity() only ever returned PP_OK or PP_ERROR_FAILED.
We can replace its result with a bool.
This makes it clear that ReportPpapiError() was only ever called with
PP_ERROR_FAILED, so we can remove it and call ReportNonPpapiError()
instead.
We can also move an error check into NexeReadDidOpen(), instead of
having its callers check.
BUG=302078
TEST=e.g. NaClBrowserTestPnacl.PPAPICore (tests PNaCl translation)
Committed: https://crrev.com/2be51e74fd35932038e3031ab2345b367ba34bce
Cr-Commit-Position: refs/heads/master@{#370518}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Review: remove arg & move check #
Messages
Total messages: 17 (9 generated)
|