summaryrefslogtreecommitdiffstats
path: root/chromium/content/browser/child_process_launcher_helper_posix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/child_process_launcher_helper_posix.cc')
-rw-r--r--chromium/content/browser/child_process_launcher_helper_posix.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/content/browser/child_process_launcher_helper_posix.cc b/chromium/content/browser/child_process_launcher_helper_posix.cc
index dd8dff9117f..0891f24e498 100644
--- a/chromium/content/browser/child_process_launcher_helper_posix.cc
+++ b/chromium/content/browser/child_process_launcher_helper_posix.cc
@@ -59,8 +59,8 @@ std::unique_ptr<PosixFileDescriptorInfo> CreateDefaultPosixFilesToMap(
// Mac shared memory doesn't use file descriptors.
#if !defined(OS_MAC)
int fd = base::FieldTrialList::GetFieldTrialDescriptor();
- DCHECK_NE(fd, -1);
- files_to_register->Share(kFieldTrialDescriptor, fd);
+ if (fd != -1)
+ files_to_register->Share(kFieldTrialDescriptor, fd);
DCHECK(mojo_channel_remote_endpoint.is_valid());
files_to_register->Share(