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

Unified Diff: runtime/vm/native_message_handler.cc

Issue 2651633002: VM: [Kernel] Fix bootstraping when Kernel isolate is used. (Closed)
Patch Set: Landing issue Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/native_message_handler.h ('k') | runtime/vm/service_isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/native_message_handler.cc
diff --git a/runtime/vm/native_message_handler.cc b/runtime/vm/native_message_handler.cc
index 41fbd2cabc0ecafbf6c75db597e20290b94c65d7..baa073d69a3cc0c56365b204f4de61a10411030d 100644
--- a/runtime/vm/native_message_handler.cc
+++ b/runtime/vm/native_message_handler.cc
@@ -12,8 +12,9 @@
namespace dart {
NativeMessageHandler::NativeMessageHandler(const char* name,
- Dart_NativeMessageHandler func)
- : name_(strdup(name)), func_(func) {}
+ Dart_NativeMessageHandler func,
+ void* peer)
+ : name_(strdup(name)), func_(func), peer_(peer) {}
NativeMessageHandler::~NativeMessageHandler() {
@@ -41,7 +42,7 @@ MessageHandler::MessageStatus NativeMessageHandler::HandleMessage(
Dart_CObject* object;
ApiMessageReader reader(message);
object = reader.ReadMessage();
- (*func())(message->dest_port(), object);
+ (*func())(message->dest_port(), object, peer());
delete message;
return kOK;
}
« no previous file with comments | « runtime/vm/native_message_handler.h ('k') | runtime/vm/service_isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698