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

Unified Diff: base/metrics/field_trial.cc

Issue 2843113002: make base::SharedMemoryHandle a class on POSIX. (Closed)
Patch Set: Fix test error. 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
Index: base/metrics/field_trial.cc
diff --git a/base/metrics/field_trial.cc b/base/metrics/field_trial.cc
index 6b38d55bbd95f21dd57a5ae2a858277a9e6e9353..7a6685472d65eea5793467f10cc0af21db37531c 100644
--- a/base/metrics/field_trial.cc
+++ b/base/metrics/field_trial.cc
@@ -1156,11 +1156,7 @@ bool FieldTrialList::CreateTrialsFromDescriptor(int fd_key) {
if (fd == -1)
return false;
-#if defined(OS_MACOSX) && !defined(OS_IOS)
SharedMemoryHandle shm_handle(FileDescriptor(fd, true));
-#else
- SharedMemoryHandle shm_handle(fd, true);
-#endif
bool result = FieldTrialList::CreateTrialsFromSharedMemoryHandle(shm_handle);
DCHECK(result);

Powered by Google App Engine
This is Rietveld 408576698