|
Pepper: Move NaCl fatal logging to Chrome IPC.
nacl_helper reports the last few log messages to the renderer when a LOG_FATAL
message is logged in the plugin. This currently uses the "bootstrap" channel,
which we would like to get rid of.
This change registers a callback in the loader process to log fatal messages to
the JS console as soon as they're reported.
I had to add some synchronization to "flush" the task queue for the IPC task
runner in this change. That's because ChannelProxy::Send queues the send job
on a background thread. Unfortunately, the plugin could exit before that send
happens, preventing messages from being logged to the JS console.
I tested this manually by forcing a plugin crash after StartModule() in
service_runtime.cc.
BUG= 391039
Total comments: 2
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+102 lines, -46 lines) |
Patch |
|
M |
components/nacl/common/nacl_messages.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
1 comment
|
Download
|
|
M |
components/nacl/loader/nacl_listener.cc
|
View
|
1
2
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/nacl/loader/nacl_trusted_listener.h
|
View
|
1
2
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/nacl/loader/nacl_trusted_listener.cc
|
View
|
1
2
|
2 chunks |
+35 lines, -1 line |
2 comments
|
Download
|
|
M |
components/nacl/renderer/nexe_load_manager.h
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
components/nacl/renderer/nexe_load_manager.cc
|
View
|
|
3 chunks |
+1 line, -14 lines |
0 comments
|
Download
|
|
M |
components/nacl/renderer/ppb_nacl_private_impl.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
components/nacl/renderer/trusted_plugin_channel.h
|
View
|
|
3 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
components/nacl/renderer/trusted_plugin_channel.cc
|
View
|
1
|
2 chunks |
+25 lines, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/api/private/ppb_nacl_private.idl
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/c/private/ppb_nacl_private.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/native_client/src/trusted/plugin/plugin.cc
|
View
|
1
2
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
ppapi/native_client/src/trusted/plugin/service_runtime.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/native_client/src/trusted/plugin/service_runtime.cc
|
View
|
|
1 chunk |
+0 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
|
Total messages: 10 (0 generated)
|