Index: mojo/public/platform/dart/mojo_natives.cc |
diff --git a/mojo/public/platform/dart/mojo_natives.cc b/mojo/public/platform/dart/mojo_natives.cc |
index 5d08fd3e9a346dd3ff6d2d5e5a9ab9def498d2bc..7b61d04b58118c7a9fb4ea9647529fbf124b3d3b 100644 |
--- a/mojo/public/platform/dart/mojo_natives.cc |
+++ b/mojo/public/platform/dart/mojo_natives.cc |
@@ -127,13 +127,7 @@ static void MojoHandleCloserCallback(void* isolate_data, |
CloserCallbackPeer* callback_peer = |
reinterpret_cast<CloserCallbackPeer*>(peer); |
if (callback_peer->handle != MOJO_HANDLE_INVALID) { |
- MojoResult res = MojoClose(callback_peer->handle); |
- if (res == MOJO_RESULT_OK) { |
- // If this finalizer callback successfully closes a handle, it means that |
- // the handle has leaked from the Dart code, which is an error. |
- MOJO_LOG(ERROR) << "Handle Finalizer closing handle:\n\tisolate: " |
- << "\n\thandle: " << callback_peer->handle; |
- } |
+ MojoClose(callback_peer->handle); |
} |
delete callback_peer; |
} |