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

Unified Diff: mojo/edk/embedder/platform_handle.cc

Issue 2735113003: Changing SpawnChild to return a struct.
Patch Set: Created 3 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 | « mojo/edk/embedder/platform_handle.h ('k') | mojo/edk/system/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « mojo/edk/embedder/platform_handle.h ('k') | mojo/edk/system/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698