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

Unified Diff: runtime/bin/socket.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/socket.cc
diff --git a/runtime/bin/socket.cc b/runtime/bin/socket.cc
index cba96c0ecfd189f498010d9a3f582b3c9ab1fad2..fb9704b41d95224575e753f23f9154174153fed9 100644
--- a/runtime/bin/socket.cc
+++ b/runtime/bin/socket.cc
@@ -2,19 +2,22 @@
// 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/socket.h"
+
#include "bin/dartutils.h"
#include "bin/io_buffer.h"
#include "bin/isolate_data.h"
#include "bin/lockers.h"
-#include "bin/socket.h"
#include "bin/thread.h"
#include "bin/utils.h"
+#include "include/dart_api.h"
+
#include "platform/globals.h"
#include "platform/utils.h"
-#include "include/dart_api.h"
-
namespace dart {
namespace bin {
@@ -874,3 +877,5 @@ intptr_t Socket::GetSocketIdNativeField(Dart_Handle socket_obj) {
} // namespace bin
} // namespace dart
+
+#endif // !defined(DART_IO_DISABLED)
« runtime/bin/socket.h ('K') | « runtime/bin/socket.h ('k') | runtime/bin/socket_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698