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

Unified Diff: dart/runtime/bin/main.cc

Issue 913753002: Reland "Introduce optional 'bool shared' parameter to ServerSocket.bind() ..." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 5 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: dart/runtime/bin/main.cc
diff --git a/dart/runtime/bin/main.cc b/dart/runtime/bin/main.cc
index b2723ca147a55f918d6c24ea190b0cdb6b7330f6..06530aaa7a00808e1fbedbad0f44fa0cb31b6041 100644
--- a/dart/runtime/bin/main.cc
+++ b/dart/runtime/bin/main.cc
@@ -13,6 +13,7 @@
#include "bin/dartutils.h"
#include "bin/dbg_connection.h"
#include "bin/directory.h"
+#include "bin/socket.h"
#include "bin/eventhandler.h"
#include "bin/extensions.h"
#include "bin/file.h"
@@ -947,6 +948,9 @@ void main(int argc, char** argv) {
// Start event handler.
EventHandler::Start();
+ // Initialize global socket registry.
+ ListeningSocketRegistry::Initialize();
Søren Gjesse 2015/02/11 08:51:05 Can't this go inside EventHandler::Start()?
kustermann 2015/02/11 09:56:08 Done.
+
// Initialize the Dart VM.
if (!Dart_Initialize(CreateIsolateAndSetup, NULL, NULL, ShutdownIsolate,
DartUtils::OpenFile,

Powered by Google App Engine
This is Rietveld 408576698