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

Unified Diff: dart/runtime/bin/eventhandler.cc

Issue 879353003: Introduce optional 'bool shared' parameter to ServerSocket.bind() ... (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 5 years, 10 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 | « dart/runtime/bin/eventhandler.h ('k') | dart/runtime/bin/eventhandler_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/bin/eventhandler.cc
diff --git a/dart/runtime/bin/eventhandler.cc b/dart/runtime/bin/eventhandler.cc
index 542602f6bde2bac4b8dec8c5393dd158d2acfec6..1327dff79454fbaa7b930910614afe27ec648de9 100644
--- a/dart/runtime/bin/eventhandler.cc
+++ b/dart/runtime/bin/eventhandler.cc
@@ -12,8 +12,6 @@
namespace dart {
namespace bin {
-static const intptr_t kTimerId = -1;
-static const intptr_t kInvalidId = -2;
void TimeoutQueue::UpdateTimeout(Dart_Port port, int64_t timeout) {
// Find port if present.
@@ -85,7 +83,7 @@ EventHandlerImplementation* EventHandler::delegate() {
*/
void FUNCTION_NAME(EventHandler_SendData)(Dart_NativeArguments args) {
Dart_Handle sender = Dart_GetNativeArgument(args, 0);
- intptr_t id = kInvalidId;
+ intptr_t id;
if (Dart_IsNull(sender)) {
id = kTimerId;
} else {
« no previous file with comments | « dart/runtime/bin/eventhandler.h ('k') | dart/runtime/bin/eventhandler_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698