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

Issue 1089323006: Add a load_status callback hook that is invoked at the end of chrome LoadApp. (Closed)

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

Description

Add a load_status callback hook that is invoked at the end of chrome LoadApp. This callback will be used to communicate the load status (success or error) in the place of the start_module SRPC call, so that we can deprecate the "start_module" call later. Blocking on "start_module" is kept for now. Next step is to use it in chrome like so: https://codereview.chromium.org/1090233003/ When the hook is set, assume that we want to reap logs on error, so that we can remove the SRPC "log" command as well. BUG= https://code.google.com/p/chromium/issues/detail?id=459250 Committed: https://chromium.googlesource.com/native_client/src/native_client/+/2d7fb8345670874fb63d715a18a5ce6fd69d3cb5

Patch Set 1 #

Patch Set 2 : also handle reap logs while we are at it #

Patch Set 3 : reorder events #

Total comments: 2

Patch Set 4 : review #

Total comments: 10

Patch Set 5 : review #

Patch Set 6 : there is still a race, so block for now #

Patch Set 7 : xyz #

Total comments: 4

Patch Set 8 : udpate comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
M src/public/chrome_main.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M src/trusted/service_runtime/sel_main_chrome.c View 1 2 3 4 5 6 7 2 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
jvoung (off chromium)
5 years, 8 months ago (2015-04-17 22:56:45 UTC) #2
Mark Seaborn
https://codereview.chromium.org/1089323006/diff/40001/src/public/chrome_main.h File src/public/chrome_main.h (right): https://codereview.chromium.org/1089323006/diff/40001/src/public/chrome_main.h#newcode242 src/public/chrome_main.h:242: void NaClSetLoadStatusCallback(void (*func)(int load_status)); Can you make this callback ...
5 years, 8 months ago (2015-04-17 23:15:54 UTC) #3
jvoung (off chromium)
https://codereview.chromium.org/1089323006/diff/40001/src/public/chrome_main.h File src/public/chrome_main.h (right): https://codereview.chromium.org/1089323006/diff/40001/src/public/chrome_main.h#newcode242 src/public/chrome_main.h:242: void NaClSetLoadStatusCallback(void (*func)(int load_status)); On 2015/04/17 23:15:54, Mark Seaborn ...
5 years, 8 months ago (2015-04-18 00:58:17 UTC) #4
Mark Seaborn
LGTM, thanks! https://codereview.chromium.org/1089323006/diff/60001/src/public/chrome_main.h File src/public/chrome_main.h (right): https://codereview.chromium.org/1089323006/diff/60001/src/public/chrome_main.h#newcode167 src/public/chrome_main.h:167: * NaClChromeMainStart is known (load_status is a ...
5 years, 8 months ago (2015-04-18 01:14:15 UTC) #5
jvoung (off chromium)
https://codereview.chromium.org/1089323006/diff/60001/src/public/chrome_main.h File src/public/chrome_main.h (right): https://codereview.chromium.org/1089323006/diff/60001/src/public/chrome_main.h#newcode167 src/public/chrome_main.h:167: * NaClChromeMainStart is known (load_status is a value from ...
5 years, 8 months ago (2015-04-20 18:49:47 UTC) #6
Mark Seaborn
LGTM https://codereview.chromium.org/1089323006/diff/120001/src/trusted/service_runtime/sel_main_chrome.c File src/trusted/service_runtime/sel_main_chrome.c (right): https://codereview.chromium.org/1089323006/diff/120001/src/trusted/service_runtime/sel_main_chrome.c#newcode395 src/trusted/service_runtime/sel_main_chrome.c:395: /* Fall through and run NaClBlockIfCommandChannelExists. Nit: Use ...
5 years, 8 months ago (2015-04-21 16:41:23 UTC) #7
jvoung (off chromium)
https://codereview.chromium.org/1089323006/diff/120001/src/trusted/service_runtime/sel_main_chrome.c File src/trusted/service_runtime/sel_main_chrome.c (right): https://codereview.chromium.org/1089323006/diff/120001/src/trusted/service_runtime/sel_main_chrome.c#newcode395 src/trusted/service_runtime/sel_main_chrome.c:395: /* Fall through and run NaClBlockIfCommandChannelExists. On 2015/04/21 16:41:23, ...
5 years, 8 months ago (2015-04-21 17:10:09 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089323006/140001
5 years, 8 months ago (2015-04-21 17:10:41 UTC) #11
commit-bot: I haz the power
5 years, 8 months ago (2015-04-21 19:19:58 UTC) #12
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/native_client/src/native_client/+/2d7fb8345...

Powered by Google App Engine
This is Rietveld 408576698