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

Unified Diff: runtime/observatory/web/main.dart

Issue 2154343002: Added custom tags helper classes to the Observatory (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixed typos & Added comments Created 4 years, 5 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
« no previous file with comments | « runtime/observatory/web/index.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/web/main.dart
diff --git a/runtime/observatory/web/main.dart b/runtime/observatory/web/main.dart
index 238bf97217a8bc40f0b7328393e4155747e8177b..41f3dc74c2c0f43a978edec47cc86685153cc87b 100644
--- a/runtime/observatory/web/main.dart
+++ b/runtime/observatory/web/main.dart
@@ -4,8 +4,9 @@
import 'package:logging/logging.dart';
import 'package:polymer/polymer.dart';
+import 'package:observatory/elements.dart';
-main() {
+main() async {
Logger.root.level = Level.INFO;
Logger.root.onRecord.listen((LogRecord rec) {
if (rec.level == Level.WARNING &&
@@ -17,13 +18,10 @@ main() {
}
print('${rec.level.name}: ${rec.time}: ${rec.message}');
});
+ await initElements();
Logger.root.info('Starting Observatory');
- initPolymer().then((zone) {
- Logger.root.info('Polymer initialized');
- // Code here is in the polymer Zone, which ensures that
- // @observable properties work correctly.
- Polymer.onReady.then((_) {
- Logger.root.info('Polymer elements have been upgraded');
- });
- });
+ await initPolymer();
+ Logger.root.info('Polymer initialized');
+ await Polymer.onReady;
+ Logger.root.info('Polymer elements have been upgraded');
}
« no previous file with comments | « runtime/observatory/web/index.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698