Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Issue 1608313002: PNaCl cleanup: Simplify error checking when opening temp files (Closed)

Created:
4 years, 11 months ago by Mark Seaborn
Modified:
4 years, 11 months ago
Reviewers:
bbudge
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PNaCl 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -53 lines) Patch
M components/nacl/renderer/plugin/pnacl_coordinator.h View 1 2 chunks +1 line, -7 lines 0 comments Download
M components/nacl/renderer/plugin/pnacl_coordinator.cc View 1 5 chunks +10 lines, -39 lines 0 comments Download
M components/nacl/renderer/plugin/temporary_file.h View 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/renderer/plugin/temporary_file.cc View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1608313002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1608313002/1
4 years, 11 months ago (2016-01-20 19:23:36 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-20 20:15:13 UTC) #4
Mark Seaborn
4 years, 11 months ago (2016-01-20 21:09:46 UTC) #7
bbudge
LGTM w/question https://codereview.chromium.org/1608313002/diff/1/components/nacl/renderer/plugin/pnacl_coordinator.cc File components/nacl/renderer/plugin/pnacl_coordinator.cc (right): https://codereview.chromium.org/1608313002/diff/1/components/nacl/renderer/plugin/pnacl_coordinator.cc#newcode209 components/nacl/renderer/plugin/pnacl_coordinator.cc:209: if (!success) { Could you just test ...
4 years, 11 months ago (2016-01-20 21:25:57 UTC) #8
Mark Seaborn
https://codereview.chromium.org/1608313002/diff/1/components/nacl/renderer/plugin/pnacl_coordinator.cc File components/nacl/renderer/plugin/pnacl_coordinator.cc (right): https://codereview.chromium.org/1608313002/diff/1/components/nacl/renderer/plugin/pnacl_coordinator.cc#newcode209 components/nacl/renderer/plugin/pnacl_coordinator.cc:209: if (!success) { On 2016/01/20 21:25:57, bbudge wrote: > ...
4 years, 11 months ago (2016-01-20 21:49:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1608313002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1608313002/20001
4 years, 11 months ago (2016-01-20 21:50:54 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-20 22:51:13 UTC) #15
commit-bot: I haz the power
4 years, 11 months ago (2016-01-20 22:52:27 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2be51e74fd35932038e3031ab2345b367ba34bce
Cr-Commit-Position: refs/heads/master@{#370518}

Powered by Google App Engine
This is Rietveld 408576698