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

Unified Diff: ppapi/proxy/serialized_handle.h

Issue 2849633002: Get rid of base::SharedMemory::NULLHandle(); (Closed)
Patch Set: Rebase. Created 3 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 | « ppapi/proxy/proxy_channel.cc ('k') | ppapi/proxy/serialized_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/serialized_handle.h
diff --git a/ppapi/proxy/serialized_handle.h b/ppapi/proxy/serialized_handle.h
index d7e74ccb5427a9fb3e0379f2a9c61017ae69639a..3eb59931c2e219bed2a1a9aaf56625eef5b5e934 100644
--- a/ppapi/proxy/serialized_handle.h
+++ b/ppapi/proxy/serialized_handle.h
@@ -94,7 +94,7 @@ class PPAPI_PROXY_EXPORT SerializedHandle {
type_ = SOCKET;
descriptor_ = socket;
- shm_handle_ = base::SharedMemory::NULLHandle();
+ shm_handle_ = base::SharedMemoryHandle();
size_ = 0;
}
void set_file_handle(const IPC::PlatformFileForTransit& descriptor,
@@ -103,14 +103,12 @@ class PPAPI_PROXY_EXPORT SerializedHandle {
type_ = FILE;
descriptor_ = descriptor;
- shm_handle_ = base::SharedMemory::NULLHandle();
+ shm_handle_ = base::SharedMemoryHandle();
size_ = 0;
open_flags_ = open_flags;
file_io_ = file_io;
}
- void set_null_shmem() {
- set_shmem(base::SharedMemory::NULLHandle(), 0);
- }
+ void set_null_shmem() { set_shmem(base::SharedMemoryHandle(), 0); }
void set_null_socket() {
set_socket(IPC::InvalidPlatformFileForTransit());
}
« no previous file with comments | « ppapi/proxy/proxy_channel.cc ('k') | ppapi/proxy/serialized_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698