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

Unified Diff: runtime/bin/main.cc

Issue 8662006: Fix a number of issues with the process handling (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from ager@ Created 9 years, 1 month 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/bin/eventhandler_macos.cc ('k') | runtime/bin/platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index 8255d999c5bfd50783c5122682fc3199e21d8df8..c172aaaf033b2dc4c3d9b1bf8ed313eb2587ba9b 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -12,6 +12,7 @@
#include "bin/dartutils.h"
#include "bin/file.h"
#include "bin/globals.h"
+#include "bin/platform.h"
// snapshot_buffer points to a snapshot if we link in a snapshot otherwise
// it is initialized to NULL.
@@ -251,6 +252,11 @@ int main(int argc, char** argv) {
CommandLineOptions vm_options(argc);
CommandLineOptions dart_options(argc);
+ // Perform platform specific initialization.
+ if (!Platform::Initialize()) {
+ fprintf(stderr, "Initialization failed\n");
+ }
+
// Parse command line arguments.
if (ParseArguments(argc,
argv,
« no previous file with comments | « runtime/bin/eventhandler_macos.cc ('k') | runtime/bin/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698