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

Unified Diff: runtime/vm/service/vmservice.dart

Issue 131973007: Allow root level requests in the vm service. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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/service/message.dart ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service/vmservice.dart
===================================================================
--- runtime/vm/service/vmservice.dart (revision 31848)
+++ runtime/vm/service/vmservice.dart (working copy)
@@ -82,7 +82,10 @@
_clientCollection(message);
return message.response;
}
- return runningIsolates.route(message);
+ if (message.path[0] == 'isolates') {
+ return runningIsolates.route(message);
+ }
+ return message.sendToVM();
}
}
@@ -91,6 +94,3 @@
// Return the port we expect isolate startup and shutdown messages on.
return new VMService().receivePort;
}
-
-void sendServiceMessage(SendPort sp, Object m)
- native "VMService_SendServiceMessage";
« no previous file with comments | « runtime/vm/service/message.dart ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698