Index: mojo/edk/embedder/simple_platform_shared_buffer_posix.cc |
diff --git a/mojo/edk/embedder/simple_platform_shared_buffer_posix.cc b/mojo/edk/embedder/simple_platform_shared_buffer_posix.cc |
index 8dfcf44bbac1cdae7fb06d0eb8cdc988503fe88d..a3d10ef9eba4dbf008a39559804a88a7371a1758 100644 |
--- a/mojo/edk/embedder/simple_platform_shared_buffer_posix.cc |
+++ b/mojo/edk/embedder/simple_platform_shared_buffer_posix.cc |
@@ -33,6 +33,10 @@ namespace embedder { |
// SimplePlatformSharedBuffer -------------------------------------------------- |
+// The implementation for android uses ashmem to generate the file descriptor |
+// for the shared memory. See simple_platform_shared_buffer_android.cc |
+#if !defined(OS_ANDROID) |
+ |
bool SimplePlatformSharedBuffer::Init() { |
DCHECK(!handle_.is_valid()); |
@@ -115,6 +119,8 @@ bool SimplePlatformSharedBuffer::InitFromPlatformHandle( |
return true; |
} |
+#endif // !defined(OS_ANDROID) |
+ |
scoped_ptr<PlatformSharedBufferMapping> SimplePlatformSharedBuffer::MapImpl( |
size_t offset, |
size_t length) { |