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

Unified Diff: runtime/observatory/lib/src/elements/function_view.dart

Issue 1120133002: Rework error handling in the service protocol and in Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix tests Created 5 years, 7 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/elements/function_view.dart
diff --git a/runtime/observatory/lib/src/elements/function_view.dart b/runtime/observatory/lib/src/elements/function_view.dart
index 35414e502a27ce01f24da62781ffdee4016b277a..5b0d8ecb81b9389788c55399391929ebe9a17fa4 100644
--- a/runtime/observatory/lib/src/elements/function_view.dart
+++ b/runtime/observatory/lib/src/elements/function_view.dart
@@ -4,6 +4,7 @@
library function_view_element;
+import 'dart:async';
import 'observatory_element.dart';
import 'package:observatory/service.dart';
@@ -14,11 +15,11 @@ class FunctionViewElement extends ObservatoryElement {
@published ServiceFunction function;
FunctionViewElement.created() : super.created();
- void refresh(var done) {
- function.reload().whenComplete(done);
+ Future refresh() {
+ return function.reload();
}
- void refreshCoverage(var done) {
- function.refreshCoverage().whenComplete(done);
+ Future refreshCoverage() {
+ return function.refreshCoverage();
}
}
« no previous file with comments | « runtime/observatory/lib/src/elements/flag_list.dart ('k') | runtime/observatory/lib/src/elements/heap_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698