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

Unified Diff: runtime/bin/io_service.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.h ('k') | runtime/bin/io_service_no_ssl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/io_service.cc
diff --git a/runtime/bin/io_service.cc b/runtime/bin/io_service.cc
index 77b722cde2813bfcdcf6714897c7ceccb735ebea..004e3d27eec24950ec5a1e9ad132ab5c4ed0bf9d 100644
--- a/runtime/bin/io_service.cc
+++ b/runtime/bin/io_service.cc
@@ -11,11 +11,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 {
@@ -30,8 +29,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() &&
@@ -57,10 +56,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);
}
@@ -74,6 +70,5 @@ void FUNCTION_NAME(IOService_NewServicePort)(Dart_NativeArguments args) {
}
}
-
} // namespace bin
} // namespace dart
« no previous file with comments | « runtime/bin/io_service.h ('k') | runtime/bin/io_service_no_ssl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698