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

Unified Diff: runtime/bin/vmservice/client/lib/src/elements/function_view.dart

Issue 192443004: Complete the switch to ServiceObject (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/elements/function_view.dart
diff --git a/runtime/bin/vmservice/client/lib/src/elements/function_view.dart b/runtime/bin/vmservice/client/lib/src/elements/function_view.dart
index 5119a7e35686e5875c7a4b2781a1de7cff6cfd90..1c3620c24d91bde1b445ffaefc043a5eed8d28a7 100644
--- a/runtime/bin/vmservice/client/lib/src/elements/function_view.dart
+++ b/runtime/bin/vmservice/client/lib/src/elements/function_view.dart
@@ -4,21 +4,17 @@
library function_view_element;
-import 'isolate_element.dart';
-import 'package:logging/logging.dart';
-import 'package:polymer/polymer.dart';
+import 'observatory_element.dart';
+import 'package:observatory/service.dart';
+import 'package:polymer/polymer.dart';
@CustomTag('function-view')
-class FunctionViewElement extends IsolateElement {
- @published Map function;
+class FunctionViewElement extends ObservatoryElement {
+ @published ServiceMap function;
FunctionViewElement.created() : super.created();
void refresh(var done) {
- isolate.getMap(function['id']).then((map) {
- function = map;
- }).catchError((e, trace) {
- Logger.root.severe('Error while refreshing field-view: $e\n$trace');
- }).whenComplete(done);
+ function.reload().whenComplete(done);
}
}

Powered by Google App Engine
This is Rietveld 408576698