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

Side by Side Diff: content/zygote/zygote_main_linux.cc

Issue 976643003: Revert of Roll Clang 223108:230914 (Closed) Base URL: precise:/work/chromium/src@clang_roll_230914
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | sandbox/linux/integration_tests/bpf_dsl_seccomp_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/zygote/zygote_main.h" 5 #include "content/zygote/zygote_main.h"
6 6
7 #include <dlfcn.h> 7 #include <dlfcn.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <pthread.h> 9 #include <pthread.h>
10 #include <signal.h> 10 #include <signal.h>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #include "content/common/pepper_plugin_list.h" 60 #include "content/common/pepper_plugin_list.h"
61 #include "content/public/common/pepper_plugin_info.h" 61 #include "content/public/common/pepper_plugin_info.h"
62 #endif 62 #endif
63 63
64 #if defined(ENABLE_WEBRTC) 64 #if defined(ENABLE_WEBRTC)
65 #include "third_party/libjingle/overrides/init_webrtc.h" 65 #include "third_party/libjingle/overrides/init_webrtc.h"
66 #endif 66 #endif
67 67
68 #if defined(SANITIZER_COVERAGE) 68 #if defined(SANITIZER_COVERAGE)
69 #include <sanitizer/common_interface_defs.h> 69 #include <sanitizer/common_interface_defs.h>
70 #include <sanitizer/coverage_interface.h>
71 #endif 70 #endif
72 71
73 namespace content { 72 namespace content {
74 73
75 namespace { 74 namespace {
76 75
77 void CloseFds(const std::vector<int>& fds) { 76 void CloseFds(const std::vector<int>& fds) {
78 for (const auto& it : fds) { 77 for (const auto& it : fds) {
79 PCHECK(0 == IGNORE_EINTR(close(it))); 78 PCHECK(0 == IGNORE_EINTR(close(it)));
80 } 79 }
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 const bool namespace_sandbox_engaged = sandbox_flags & kSandboxLinuxUserNS; 595 const bool namespace_sandbox_engaged = sandbox_flags & kSandboxLinuxUserNS;
597 CHECK_EQ(using_namespace_sandbox, namespace_sandbox_engaged); 596 CHECK_EQ(using_namespace_sandbox, namespace_sandbox_engaged);
598 597
599 Zygote zygote(sandbox_flags, fork_delegates.Pass(), extra_children, 598 Zygote zygote(sandbox_flags, fork_delegates.Pass(), extra_children,
600 extra_fds); 599 extra_fds);
601 // This function call can return multiple times, once per fork(). 600 // This function call can return multiple times, once per fork().
602 return zygote.ProcessRequests(); 601 return zygote.ProcessRequests();
603 } 602 }
604 603
605 } // namespace content 604 } // namespace content
OLDNEW
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | sandbox/linux/integration_tests/bpf_dsl_seccomp_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698