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

Unified Diff: runtime/bin/vmservice/client/lib/src/observatory/isolate_manager.dart

Issue 135843006: Improve Code object support in service and observatory (Closed) Base URL: https://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
Index: runtime/bin/vmservice/client/lib/src/observatory/isolate_manager.dart
diff --git a/runtime/bin/vmservice/client/lib/src/observatory/isolate_manager.dart b/runtime/bin/vmservice/client/lib/src/observatory/isolate_manager.dart
index e598e40aff45283258ffda2722577fc2b9ef06c8..af2fa4a7ab97d0134efa2cfabd40fb08e5a82ee4 100644
--- a/runtime/bin/vmservice/client/lib/src/observatory/isolate_manager.dart
+++ b/runtime/bin/vmservice/client/lib/src/observatory/isolate_manager.dart
@@ -12,7 +12,7 @@ class IsolateManager extends Observable {
@observable final Map<String, Isolate> isolates =
toObservable(new Map<String, Isolate>());
- static bool _foundIsolateInMembers(int id, List<Map> members) {
+ static bool _foundIsolateInMembers(String id, List<Map> members) {
return members.any((E) => E['id'] == id);
}
@@ -27,8 +27,9 @@ class IsolateManager extends Observable {
Isolate getIsolate(String id) {
Isolate isolate = isolates[id];
if (isolate == null) {
- isolate = new Isolate(id, '');
+ isolate = new Isolate(id, id);
isolates[id] = isolate;
+ return isolate;
}
return isolate;
}

Powered by Google App Engine
This is Rietveld 408576698