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

Unified Diff: runtime/observatory/lib/src/elements/library_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/library_view.dart
diff --git a/runtime/observatory/lib/src/elements/library_view.dart b/runtime/observatory/lib/src/elements/library_view.dart
index 4a83c16b93eb4c5399674422c3e27b217bb2e932..197a523aceff13b230d55c35dadd501072e6e9a6 100644
--- a/runtime/observatory/lib/src/elements/library_view.dart
+++ b/runtime/observatory/lib/src/elements/library_view.dart
@@ -20,11 +20,11 @@ class LibraryViewElement extends ObservatoryElement {
return library.isolate.eval(library, expression);
}
- void refresh(var done) {
- library.reload().whenComplete(done);
+ Future refresh() {
+ return library.reload();
}
- void refreshCoverage(var done) {
- library.refreshCoverage().whenComplete(done);
+ Future refreshCoverage() {
+ return library.refreshCoverage();
}
}
« no previous file with comments | « runtime/observatory/lib/src/elements/isolate_view.dart ('k') | runtime/observatory/lib/src/elements/metrics.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698