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

Unified Diff: runtime/bin/vmservice/client/lib/src/app/utils.dart

Issue 335463008: Allow Observatory to run as a hosted web service (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/app/utils.dart
diff --git a/runtime/bin/vmservice/client/lib/src/app/utils.dart b/runtime/bin/vmservice/client/lib/src/app/utils.dart
index 5b6839b1b57f7eb6c34ad045567bbb8445465c5d..eff1a17ca447388ce71eb0a79cf1e036bba20e49 100644
--- a/runtime/bin/vmservice/client/lib/src/app/utils.dart
+++ b/runtime/bin/vmservice/client/lib/src/app/utils.dart
@@ -123,4 +123,6 @@ class Utils {
static String formatSeconds(double x) {
return x.toStringAsFixed(2);
}
+
+ static bool runningInJavaScript() => identical(1.0, 1);
}

Powered by Google App Engine
This is Rietveld 408576698