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

Unified Diff: runtime/bin/process.cc

Issue 1839463002: Really remove io support when dart:io is unsupported. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/process.cc
diff --git a/runtime/bin/process.cc b/runtime/bin/process.cc
index 3896505736664f1cfd510583765116adead67699..672b3e352fb7602f95d1b122dcb3346a11b635f1 100644
--- a/runtime/bin/process.cc
+++ b/runtime/bin/process.cc
@@ -2,11 +2,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+#if !defined(DART_IO_DISABLED)
+
+#include "bin/process.h"
+
#include "bin/dartutils.h"
#include "bin/io_buffer.h"
#include "bin/log.h"
#include "bin/platform.h"
-#include "bin/process.h"
#include "bin/socket.h"
#include "bin/utils.h"
@@ -17,9 +20,6 @@ namespace bin {
static const int kProcessIdNativeField = 0;
-int Process::global_exit_code_ = 0;
-Mutex* Process::global_exit_code_mutex_ = new Mutex();
-
// Extract an array of C strings from a list of Dart strings.
static char** ExtractCStringList(Dart_Handle strings,
Dart_Handle status_handle,
@@ -367,3 +367,5 @@ void FUNCTION_NAME(StringToSystemEncoding)(Dart_NativeArguments args) {
} // namespace bin
} // namespace dart
+
+#endif // !defined(DART_IO_DISABLED)

Powered by Google App Engine
This is Rietveld 408576698