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

Unified Diff: runtime/bin/main.cc

Issue 22901017: Always initialize the EventHandler in the standalone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Simplify impl and don't call Stop (other isolates may still be running). Created 7 years, 4 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/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index 7e5138ed0a004f57527bc75753f4c61dbab570a0..0e813eb93c89d22cf218c82df6e3417841c4de3f 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -744,6 +744,9 @@ int main(int argc, char** argv) {
}
}
+ // Start event handler.
+ EventHandler::Start();
+
// Start the VM service isolate, if necessary.
if (start_vm_service) {
ASSERT(vm_service_server_port >= 0);
@@ -860,7 +863,6 @@ int main(int argc, char** argv) {
Dart_ShutdownIsolate();
// Terminate process exit-code handler.
Process::TerminateExitCodeHandler();
- EventHandler::Stop();
// Free copied argument strings if converted.
if (argv_converted) {

Powered by Google App Engine
This is Rietveld 408576698