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

Unified Diff: runtime/bin/vmservice/client/lib/src/observatory_elements/script_ref.dart

Issue 184233007: Refactor Observatory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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_elements/script_ref.dart
diff --git a/runtime/bin/vmservice/client/lib/src/observatory_elements/script_ref.dart b/runtime/bin/vmservice/client/lib/src/observatory_elements/script_ref.dart
index 05bf87ab45106ebbef52a3a813b1d87c759456b3..2dd120e8c11843b572b622bf753a1165139aad2e 100644
--- a/runtime/bin/vmservice/client/lib/src/observatory_elements/script_ref.dart
+++ b/runtime/bin/vmservice/client/lib/src/observatory_elements/script_ref.dart
@@ -11,16 +11,11 @@ import 'service_ref.dart';
class ScriptRefElement extends ServiceRefElement {
@published int line = -1;
- String get url {
- if ((app != null) && (ref != null)) {
- var baseUrl = relativeLink(ref['id']);
- if (line < 0) {
- return baseUrl;
- } else {
- return '$baseUrl?line=$line';
- }
+ String get objectId {
+ if (line < 0) {
+ return super.objectId;
}
- return '';
+ return '${super.objectId}?line=$line';
turnidge 2014/03/05 21:02:47 Maybe put a TODO here to revisit how we are doing
Cutch 2014/03/05 21:54:23 Done.
}
String get hoverText {

Powered by Google App Engine
This is Rietveld 408576698