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

Unified Diff: base/memory/shared_memory_handle_mac.cc

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 | « base/memory/shared_memory_handle.h ('k') | base/memory/shared_memory_handle_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/shared_memory_handle_mac.cc
diff --git a/base/memory/shared_memory_handle_mac.cc b/base/memory/shared_memory_handle_mac.cc
index 9dfd3c1aeacbbc1d89fb6b09ffad5c5eec3df23a..d5c5fbad415d05363678e65f6da76a7197624a2c 100644
--- a/base/memory/shared_memory_handle_mac.cc
+++ b/base/memory/shared_memory_handle_mac.cc
@@ -91,26 +91,6 @@ SharedMemoryHandle SharedMemoryHandle::Duplicate() const {
}
}
-bool SharedMemoryHandle::operator==(const SharedMemoryHandle& handle) const {
- if (!IsValid() && !handle.IsValid())
- return true;
-
- if (type_ != handle.type_)
- return false;
-
- switch (type_) {
- case POSIX:
- return file_descriptor_.fd == handle.file_descriptor_.fd;
- case MACH:
- return memory_object_ == handle.memory_object_ && size_ == handle.size_ &&
- pid_ == handle.pid_;
- }
-}
-
-bool SharedMemoryHandle::operator!=(const SharedMemoryHandle& handle) const {
- return !(*this == handle);
-}
-
bool SharedMemoryHandle::IsValid() const {
switch (type_) {
case POSIX:
« no previous file with comments | « base/memory/shared_memory_handle.h ('k') | base/memory/shared_memory_handle_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698