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

Unified Diff: mojo/edk/system/broker_posix.cc

Issue 1689053003: Support read-only duplicates of Mojo shared buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-shm-interop
Patch Set: Rebase and fix comment. Created 4 years, 8 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_shared_buffer.cc ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/broker_posix.cc
diff --git a/mojo/edk/system/broker_posix.cc b/mojo/edk/system/broker_posix.cc
index 91b9cb5a998c2cf8961b608038b726a9e80863af..3cbb953f1cb1ae6f594a262c61e55d85c35215c1 100644
--- a/mojo/edk/system/broker_posix.cc
+++ b/mojo/edk/system/broker_posix.cc
@@ -112,7 +112,8 @@ scoped_refptr<PlatformSharedBuffer> Broker::GetSharedBuffer(size_t num_bytes) {
BrokerMessageType::BUFFER_RESPONSE, 1,
&incoming_platform_handles)) {
return PlatformSharedBuffer::CreateFromPlatformHandle(
- num_bytes, ScopedPlatformHandle(incoming_platform_handles.front()));
+ num_bytes, false /* read_only */,
+ ScopedPlatformHandle(incoming_platform_handles.front()));
}
return nullptr;
« no previous file with comments | « mojo/edk/embedder/platform_shared_buffer.cc ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698