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

Unified Diff: runtime/observatory/lib/src/app/application.dart

Issue 1100583006: Add crash dumps to service protocol and Observatory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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/app/application.dart
diff --git a/runtime/observatory/lib/src/app/application.dart b/runtime/observatory/lib/src/app/application.dart
index a76823276e0f34b0996428b57188e5bbb7b56bc4..d4d561c0b6a2a94ee3cede5f621e41ba6c760a40 100644
--- a/runtime/observatory/lib/src/app/application.dart
+++ b/runtime/observatory/lib/src/app/application.dart
@@ -128,7 +128,7 @@ class ObservatoryApplication extends Observable {
if (exception.kind == 'NetworkException') {
// Got a network exception, visit the vm-connect page.
this.vm = null;
- locationManager.go(locationManager.makeLink('/vm-connect/'));
+ locationManager.go(locationManager.makeLink('/vm-connect'));
} else {
_visit(Uri.parse('error/'), null);
}
@@ -219,4 +219,9 @@ class ObservatoryApplication extends Observable {
this.vm = null;
notifications.add(new ServiceEvent.vmDisconencted());
}
+
+ loadCrashDump(Map crashDump) {
+ this.vm = new FakeVM(crashDump['responses']);
+ app.locationManager.go('#/vm');
+ }
}
« no previous file with comments | « no previous file | runtime/observatory/lib/src/app/location_manager.dart » ('j') | runtime/observatory/lib/src/app/page.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698