Index: mojo/edk/embedder/platform_handle.cc |
diff --git a/mojo/edk/embedder/platform_handle.cc b/mojo/edk/embedder/platform_handle.cc |
index b6b2cd22d1fee38d8f38879adda8d387a7f6a237..7402c925391d44cf5a1f366f288e09c344c7b70c 100644 |
--- a/mojo/edk/embedder/platform_handle.cc |
+++ b/mojo/edk/embedder/platform_handle.cc |
@@ -13,6 +13,10 @@ |
#error "Platform not yet supported." |
#endif |
+#if defined(OS_ANDROID) |
+#include "base/android/jni_android.h" |
+#endif |
+ |
#include "base/logging.h" |
namespace mojo { |
@@ -35,6 +39,10 @@ void PlatformHandle::CloseIfNecessary() { |
port = MACH_PORT_NULL; |
} |
#endif // defined(OS_MACOSX) && !defined(OS_IOS) |
+#if defined(OS_ANDROID) |
+ else if (type == Type::PARCELABLE) |
+ parcelable.Reset(); |
+#endif // defined(OS_ANDROID) |
#elif defined(OS_WIN) |
if (owning_process != base::GetCurrentProcessHandle()) { |
// This handle may have been duplicated to a new target process but not yet |