Index: base/metrics/field_trial.cc |
diff --git a/base/metrics/field_trial.cc b/base/metrics/field_trial.cc |
index dba659e5dd5a3277fd4617242cfd6a0d3b6edf0a..af83f63cc3abb6540817e281f9996234a737b418 100644 |
--- a/base/metrics/field_trial.cc |
+++ b/base/metrics/field_trial.cc |
@@ -221,10 +221,8 @@ HANDLE CreateReadOnlyHandle(FieldTrialList::FieldTrialAllocator* allocator) { |
#if defined(OS_POSIX) && !defined(OS_NACL) |
int CreateReadOnlyHandle(FieldTrialList::FieldTrialAllocator* allocator) { |
- SharedMemoryHandle new_handle; |
- allocator->shared_memory()->ShareReadOnlyToProcess(GetCurrentProcessHandle(), |
- &new_handle); |
- return SharedMemory::GetFdFromSharedMemoryHandle(new_handle); |
+ SharedMemoryHandle handle = allocator->shared_memory()->GetReadOnlyHandle(); |
+ return SharedMemory::GetFdFromSharedMemoryHandle(handle); |
} |
#endif |