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

Unified Diff: remoting/host/desktop_session_proxy.cc

Issue 1509063003: Remoting: Remove references to POSIX shared memory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp57_base
Patch Set: Rebase. Created 5 years 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 | « remoting/host/desktop_session_proxy.h ('k') | remoting/host/ipc_desktop_environment_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_session_proxy.cc
diff --git a/remoting/host/desktop_session_proxy.cc b/remoting/host/desktop_session_proxy.cc
index 1cedfd5d43332f42a440e50d8cc0002d4d2c2df9..8d05833224d615c06c9aa5310ac671e319027b0c 100644
--- a/remoting/host/desktop_session_proxy.cc
+++ b/remoting/host/desktop_session_proxy.cc
@@ -60,12 +60,6 @@ class DesktopSessionProxy::IpcSharedBufferCore
size_(size) {
if (!shared_memory_.Map(size)) {
LOG(ERROR) << "Failed to map a shared buffer: id=" << id
-#if defined(OS_WIN)
- << ", handle=" << handle.GetHandle()
-#else
- << ", handle.fd="
- << base::SharedMemory::GetFdFromSharedMemoryHandle(handle)
-#endif
<< ", size=" << size;
}
}
@@ -476,18 +470,12 @@ void DesktopSessionProxy::OnAudioPacket(const std::string& serialized_packet) {
void DesktopSessionProxy::OnCreateSharedBuffer(
int id,
- IPC::PlatformFileForTransit handle,
+ base::SharedMemoryHandle handle,
uint32_t size) {
DCHECK(caller_task_runner_->BelongsToCurrentThread());
-#if defined(OS_WIN)
- base::SharedMemoryHandle shm_handle =
- base::SharedMemoryHandle(handle, base::GetCurrentProcId());
-#else
- base::SharedMemoryHandle shm_handle = base::SharedMemoryHandle(handle);
-#endif
scoped_refptr<IpcSharedBufferCore> shared_buffer =
- new IpcSharedBufferCore(id, shm_handle, desktop_process_.Handle(), size);
+ new IpcSharedBufferCore(id, handle, desktop_process_.Handle(), size);
if (shared_buffer->memory() != nullptr &&
!shared_buffers_.insert(std::make_pair(id, shared_buffer)).second) {
« no previous file with comments | « remoting/host/desktop_session_proxy.h ('k') | remoting/host/ipc_desktop_environment_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698