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

Unified Diff: runtime/observatory/lib/src/repositories/context.dart

Issue 2270013002: Converted Observatory context-view element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixed access to instance function Created 4 years, 4 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/observatory/lib/src/repositories/context.dart
diff --git a/runtime/observatory/lib/src/repositories/ports.dart b/runtime/observatory/lib/src/repositories/context.dart
similarity index 61%
copy from runtime/observatory/lib/src/repositories/ports.dart
copy to runtime/observatory/lib/src/repositories/context.dart
index 324ef7430e85c4667428f13d05761c8fe933352d..a088428894d1e5a9b62338fb2e1778a071e4b34b 100644
--- a/runtime/observatory/lib/src/repositories/ports.dart
+++ b/runtime/observatory/lib/src/repositories/context.dart
@@ -4,11 +4,12 @@
part of repositories;
-class PortsRepository implements M.PortsRepository {
- Future<M.Ports> get(M.IsolateRef i) async {
+class ContextRepository extends M.ContextRepository {
+ ContextRepository();
+
+ Future<M.Context> get(M.IsolateRef i, String id) async{
S.Isolate isolate = i as S.Isolate;
assert(isolate != null);
- final response = await isolate.invokeRpc('_getPorts', {});
- return new S.Ports(response);
+ return (await isolate.getObject(id)) as S.Context;
}
}
« no previous file with comments | « runtime/observatory/lib/src/models/repositories/context.dart ('k') | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698