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

Unified Diff: runtime/bin/io_service_no_ssl.cc

Issue 1800863002: Cleanup in //runtime/bin (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
« no previous file with comments | « runtime/bin/io_service_no_ssl.h ('k') | runtime/bin/io_service_unsupported.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/io_service_no_ssl.cc
diff --git a/runtime/bin/io_service_no_ssl.cc b/runtime/bin/io_service_no_ssl.cc
index b63f8c8e53bd1620abd94d10074ebf68a03cd533..5c70fe45c0145bef734ac00023c686a697ac1d0e 100644
--- a/runtime/bin/io_service_no_ssl.cc
+++ b/runtime/bin/io_service_no_ssl.cc
@@ -10,11 +10,10 @@
#include "bin/socket.h"
#include "bin/utils.h"
-#include "platform/globals.h"
-#include "platform/utils.h"
-
#include "include/dart_api.h"
+#include "platform/globals.h"
+#include "platform/utils.h"
namespace dart {
namespace bin {
@@ -29,8 +28,8 @@ void IOServiceCallback(Dart_Port dest_port_id,
Dart_Port reply_port_id = ILLEGAL_PORT;
CObject* response = CObject::IllegalArgumentError();
CObjectArray request(message);
- if (message->type == Dart_CObject_kArray &&
- request.Length() == 4 &&
+ if ((message->type == Dart_CObject_kArray) &&
+ (request.Length() == 4) &&
request[0]->IsInt32() &&
request[1]->IsSendPort() &&
request[2]->IsInt32() &&
@@ -56,10 +55,7 @@ void IOServiceCallback(Dart_Port dest_port_id,
Dart_Port IOService::GetServicePort() {
- Dart_Port result = Dart_NewNativePort("IOService",
- IOServiceCallback,
- true);
- return result;
+ return Dart_NewNativePort("IOService", IOServiceCallback, true);
}
@@ -73,6 +69,5 @@ void FUNCTION_NAME(IOService_NewServicePort)(Dart_NativeArguments args) {
}
}
-
} // namespace bin
} // namespace dart
« no previous file with comments | « runtime/bin/io_service_no_ssl.h ('k') | runtime/bin/io_service_unsupported.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698