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

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

Issue 823403004: Begin migrating the vm service from a rest-style interface to a json-rpc style interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove old-style standalone tests. Created 5 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/service.idl ('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
diff --git a/runtime/vm/service/vmservice.dart b/runtime/vm/service/vmservice.dart
index f569a8e6dfbd7ac85c1b5aac7d435dcb99aa3920..3c5ed243ff6a8cf1cc4dd9e79114ecbe9fef38ef 100644
--- a/runtime/vm/service/vmservice.dart
+++ b/runtime/vm/service/vmservice.dart
@@ -142,8 +142,14 @@ class VMService extends MessageRouter {
_clientCollection(message);
return message.response;
}
- if (message.path[0] == 'isolates') {
- return runningIsolates.route(message);
+ if (message.isOld) {
+ if (message.path[0] == 'isolates') {
+ return runningIsolates.route(message);
+ }
+ } else {
+ if (message.params['isolate'] != null) {
+ return runningIsolates.route(message);
+ }
}
return message.sendToVM();
}
@@ -162,4 +168,4 @@ void _registerIsolate(int port_id, SendPort sp, String name) {
void _setEventMask(int mask)
native "VMService_SetEventMask";
-void _onStart() native "VMService_OnStart";
+void _onStart() native "VMService_OnStart";
« no previous file with comments | « runtime/vm/service/service.idl ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698