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

Unified Diff: runtime/bin/vmservice/client/lib/src/observatory/location_manager.dart

Issue 143973005: Code coverage in Observatory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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/observatory/location_manager.dart
diff --git a/runtime/bin/vmservice/client/lib/src/observatory/location_manager.dart b/runtime/bin/vmservice/client/lib/src/observatory/location_manager.dart
index d4457916518a050e9da7f367762e3dc4f58bac37..0da448f2b31276005767f5898d78ef4d52daf7dd 100644
--- a/runtime/bin/vmservice/client/lib/src/observatory/location_manager.dart
+++ b/runtime/bin/vmservice/client/lib/src/observatory/location_manager.dart
@@ -26,6 +26,8 @@ class LocationManager extends Observable {
// We just triggered another onHashChange event.
return;
}
+ notifyPropertyChange(#hasCurrentIsolate, !hasCurrentIsolate,
+ hasCurrentIsolate);
// Request the current anchor.
requestCurrentHash();
});
@@ -63,6 +65,14 @@ class LocationManager extends Observable {
return prefix.substring(2);
}
+ Isolate currentIsolate() {
+ var id = currentIsolateId();
+ if (id == '') {
+ return null;
+ }
+ return _application.isolateManager.getIsolate(id);
+ }
+
/// If no anchor is set, set the default anchor and return true.
/// Return false otherwise.
bool setDefaultHash() {

Powered by Google App Engine
This is Rietveld 408576698