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

Issue 22309007: Add success status to ReportTranslationFinished in ppb_nacl_private and IPC (Closed)

Created:
7 years, 4 months ago by Derek Schuff
Modified:
7 years, 4 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, raymes+watch_chromium.org, yzshen+watch_chromium.org, piman+watch_chromium.org, native-client-reviews_googlegroups.com, ihf+watch_chromium.org
Visibility:
Public.

Description

Add success status to ReportTranslationFinished in ppb_nacl_private and IPC The existing mechanism for the plugin to report a finished translation was only used for successful translations. This CL also reports a failed translation (but only if GetNexeFd returned successfully) to allow the browser to clean up its tracking state. TBR=binji@chromium.org, dmichael@chromium.org, jschuh@chromium.org, jvoung@chromium.org BUG= https://code.google.com/p/nativeclient/issues/detail?id=3372 TEST=browser_tests NaClBrowserTestPnacl* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216247

Patch Set 1 #

Patch Set 2 : format #

Total comments: 1

Patch Set 3 : fix unit test #

Total comments: 12

Patch Set 4 : jvoung, dmichael reviews #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -43 lines) Patch
M chrome/browser/nacl_host/nacl_host_message_filter.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/nacl_host/nacl_host_message_filter.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/nacl_host/pnacl_host.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/nacl_host/pnacl_host.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/nacl_host/pnacl_host_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/pepper/pnacl_translation_resource_host.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/renderer/pepper/pnacl_translation_resource_host.cc View 1 chunk +8 lines, -4 lines 0 comments Download
M chrome/renderer/pepper/ppb_nacl_private_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/nacl/common/nacl_host_messages.h View 1 chunk +3 lines, -2 lines 0 comments Download
M ppapi/api/private/ppb_nacl_private.idl View 1 2 3 1 chunk +9 lines, -6 lines 0 comments Download
M ppapi/c/private/ppb_nacl_private.h View 1 2 3 2 chunks +9 lines, -7 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc View 1 2 3 4 chunks +19 lines, -8 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Derek Schuff
reviews: jvoung: everything dmichael: chrome/renderer/pepper OWNERS jschuh: IPC security binji: ppapi/api OWNERS
7 years, 4 months ago (2013-08-06 18:12:00 UTC) #1
jvoung (off chromium)
https://codereview.chromium.org/22309007/diff/3001/chrome/browser/nacl_host/pnacl_host.cc File chrome/browser/nacl_host/pnacl_host.cc (right): https://codereview.chromium.org/22309007/diff/3001/chrome/browser/nacl_host/pnacl_host.cc#newcode195 chrome/browser/nacl_host/pnacl_host.cc:195: pending_translations_.erase(it); leave TODO about checking |success| ? https://codereview.chromium.org/22309007/diff/5017/chrome/renderer/pepper/pnacl_translation_resource_host.h File ...
7 years, 4 months ago (2013-08-06 18:35:28 UTC) #2
dmichael (off chromium)
just nits... OWNERS lgtm https://codereview.chromium.org/22309007/diff/5017/chrome/browser/nacl_host/pnacl_host.cc File chrome/browser/nacl_host/pnacl_host.cc (right): https://codereview.chromium.org/22309007/diff/5017/chrome/browser/nacl_host/pnacl_host.cc#newcode185 chrome/browser/nacl_host/pnacl_host.cc:185: bool success) { You're not ...
7 years, 4 months ago (2013-08-06 18:53:58 UTC) #3
Derek Schuff
thanks for the reviews https://codereview.chromium.org/22309007/diff/5017/chrome/browser/nacl_host/pnacl_host.cc File chrome/browser/nacl_host/pnacl_host.cc (right): https://codereview.chromium.org/22309007/diff/5017/chrome/browser/nacl_host/pnacl_host.cc#newcode185 chrome/browser/nacl_host/pnacl_host.cc:185: bool success) { On 2013/08/06 ...
7 years, 4 months ago (2013-08-06 21:21:13 UTC) #4
jvoung (off chromium)
lgtm
7 years, 4 months ago (2013-08-06 21:24:23 UTC) #5
jschuh
this is not the one i was afraid of. ipc security lgtm. :)
7 years, 4 months ago (2013-08-06 22:56:47 UTC) #6
Derek Schuff
I'm going to go ahead and TBR binji since this is a trivial change and ...
7 years, 4 months ago (2013-08-07 16:13:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dschuff@chromium.org/22309007/19001
7 years, 4 months ago (2013-08-07 16:13:26 UTC) #8
binji
ppapi/api lgtm
7 years, 4 months ago (2013-08-07 17:28:40 UTC) #9
Derek Schuff
7 years, 4 months ago (2013-08-07 19:23:47 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 manually as r216247 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698