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

Issue 1090233003: Set up a NaCl load status callback to start replacing "start_module". (Closed)

Created:
5 years, 8 months ago by jvoung (off chromium)
Modified:
5 years, 8 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set up a NaCl load status callback to start replacing "start_module". Uses the hook from: https://codereview.chromium.org/1089323006/ The NaClListener will set up a callback, and when the load status is known at the end of sel_main_chrome's LoadApp, it will use that to send the load_status to the renderer via Chrome IPC, instead of getting the load status from a "start_module" SRPC call. The renderer will use that load_status to report UMA stats and send progress events. This replaces the load_status coming from the SRPC "start_module::i" invocation. However, the invocation is kept for the moment because we currently block the sel_main_chrome until it is received to avoid a race condition. After this lands, we can remove the blocking and then remove the invocation. This also replaces the call to ReapLogs since that will be done once the load_status is known to be an error on the sel_main_chrome side instead. BUG= https://code.google.com/p/chromium/issues/detail?id=459250 Committed: https://crrev.com/6b7051836e5604d42723871b26c17146cc4f14c0 Cr-Commit-Position: refs/heads/master@{#326393}

Patch Set 1 #

Total comments: 6

Patch Set 2 : review #

Total comments: 6

Patch Set 3 : review #

Total comments: 1

Patch Set 4 : rebase #

Total comments: 2

Patch Set 5 : add back old comment #

Total comments: 2

Patch Set 6 : use the enum instead of int #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -81 lines) Patch
M components/nacl/common/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/common/nacl_renderer_messages.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M components/nacl/loader/nacl_listener.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M components/nacl/renderer/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
M components/nacl/renderer/plugin/service_runtime.h View 2 chunks +0 lines, -2 lines 0 comments Download
M components/nacl/renderer/plugin/service_runtime.cc View 1 2 5 chunks +5 lines, -46 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private.h View 1 2 3 2 chunks +0 lines, -8 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 3 3 chunks +2 lines, -19 lines 0 comments Download
M components/nacl/renderer/trusted_plugin_channel.h View 1 2 3 4 5 3 chunks +4 lines, -2 lines 0 comments Download
M components/nacl/renderer/trusted_plugin_channel.cc View 1 2 3 4 5 3 chunks +27 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
Mark Seaborn
https://codereview.chromium.org/1090233003/diff/1/components/nacl/loader/nacl_listener.h File components/nacl/loader/nacl_listener.h (right): https://codereview.chromium.org/1090233003/diff/1/components/nacl/loader/nacl_listener.h#newcode61 components/nacl/loader/nacl_listener.h:61: NaClTrustedListener* trusted_listener() { return trusted_listener_.get(); } Nit: you could ...
5 years, 8 months ago (2015-04-17 23:30:58 UTC) #2
jvoung (off chromium)
https://codereview.chromium.org/1090233003/diff/1/components/nacl/loader/nacl_listener.h File components/nacl/loader/nacl_listener.h (right): https://codereview.chromium.org/1090233003/diff/1/components/nacl/loader/nacl_listener.h#newcode61 components/nacl/loader/nacl_listener.h:61: NaClTrustedListener* trusted_listener() { return trusted_listener_.get(); } On 2015/04/17 23:30:58, ...
5 years, 8 months ago (2015-04-18 01:00:47 UTC) #3
Mark Seaborn
LGTM. Thanks for doing this! https://codereview.chromium.org/1090233003/diff/20001/components/nacl/common/nacl_renderer_messages.h File components/nacl/common/nacl_renderer_messages.h (right): https://codereview.chromium.org/1090233003/diff/20001/components/nacl/common/nacl_renderer_messages.h#newcode20 components/nacl/common/nacl_renderer_messages.h:20: int /* exit_status */) ...
5 years, 8 months ago (2015-04-18 14:07:53 UTC) #4
denielamokachi
lgtm
5 years, 8 months ago (2015-04-18 14:24:34 UTC) #6
denielamokachi
lgtm
5 years, 8 months ago (2015-04-19 14:10:57 UTC) #8
jvoung (off chromium)
https://codereview.chromium.org/1090233003/diff/20001/components/nacl/common/nacl_renderer_messages.h File components/nacl/common/nacl_renderer_messages.h (right): https://codereview.chromium.org/1090233003/diff/20001/components/nacl/common/nacl_renderer_messages.h#newcode20 components/nacl/common/nacl_renderer_messages.h:20: int /* exit_status */) On 2015/04/18 14:07:53, Mark Seaborn ...
5 years, 8 months ago (2015-04-21 17:11:21 UTC) #10
Mark Seaborn
LGTM https://codereview.chromium.org/1090233003/diff/60001/components/nacl/renderer/ppb_nacl_private_impl.cc File components/nacl/renderer/ppb_nacl_private_impl.cc (left): https://codereview.chromium.org/1090233003/diff/60001/components/nacl/renderer/ppb_nacl_private_impl.cc#oldcode1496 components/nacl/renderer/ppb_nacl_private_impl.cc:1496: // Gather data to see if being installed ...
5 years, 8 months ago (2015-04-21 23:29:56 UTC) #12
jvoung (off chromium)
+ Will for components/nacl/common/nacl_renderer_messages.h OWNERS
5 years, 8 months ago (2015-04-21 23:32:34 UTC) #13
jvoung (off chromium)
https://codereview.chromium.org/1090233003/diff/60001/components/nacl/renderer/ppb_nacl_private_impl.cc File components/nacl/renderer/ppb_nacl_private_impl.cc (left): https://codereview.chromium.org/1090233003/diff/60001/components/nacl/renderer/ppb_nacl_private_impl.cc#oldcode1496 components/nacl/renderer/ppb_nacl_private_impl.cc:1496: // Gather data to see if being installed changes ...
5 years, 8 months ago (2015-04-21 23:38:49 UTC) #14
Will Harris
https://codereview.chromium.org/1090233003/diff/80001/components/nacl/common/nacl_renderer_messages.h File components/nacl/common/nacl_renderer_messages.h (right): https://codereview.chromium.org/1090233003/diff/80001/components/nacl/common/nacl_renderer_messages.h#newcode20 components/nacl/common/nacl_renderer_messages.h:20: int /* load_status */) Any reason why you use ...
5 years, 8 months ago (2015-04-22 00:41:01 UTC) #15
Mark Seaborn
On 21 April 2015 at 17:41, <wfh@chromium.org> wrote: > > > https://codereview.chromium.org/1090233003/diff/80001/components/nacl/common/nacl_renderer_messages.h > File components/nacl/common/nacl_renderer_messages.h ...
5 years, 8 months ago (2015-04-22 21:26:59 UTC) #16
jvoung (off chromium)
Okay added the DEPS for that. https://codereview.chromium.org/1090233003/diff/80001/components/nacl/common/nacl_renderer_messages.h File components/nacl/common/nacl_renderer_messages.h (right): https://codereview.chromium.org/1090233003/diff/80001/components/nacl/common/nacl_renderer_messages.h#newcode20 components/nacl/common/nacl_renderer_messages.h:20: int /* load_status ...
5 years, 8 months ago (2015-04-22 21:45:21 UTC) #17
Will Harris
lgtm. thanks!
5 years, 8 months ago (2015-04-22 22:19:19 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1090233003/100001
5 years, 8 months ago (2015-04-22 22:29:41 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 8 months ago (2015-04-22 23:24:29 UTC) #22
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/6b7051836e5604d42723871b26c17146cc4f14c0 Cr-Commit-Position: refs/heads/master@{#326393}
5 years, 8 months ago (2015-04-22 23:25:26 UTC) #23
horo
5 years, 8 months ago (2015-04-23 03:53:09 UTC) #24
Message was sent while issue was closed.
I think this change make nacl_helper bigger than the expectation (8529465 byte).
https://code.google.com/p/chromium/codesearch#chromium/src/tools/perf_expecta...

Could you please update perf_expectations.json to fix the build failure?
https://crbug.com/480093

Powered by Google App Engine
This is Rietveld 408576698