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

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

Issue 959443002: Roll Clang 223108:230631 (+revert of r229678) (Closed) Base URL: precise:/work/chromium/src@clang_roll_230341
Patch Set: Variable names are hard 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>
70 #endif 71 #endif
71 72
72 namespace content { 73 namespace content {
73 74
74 namespace { 75 namespace {
75 76
76 void CloseFds(const std::vector<int>& fds) { 77 void CloseFds(const std::vector<int>& fds) {
77 for (const auto& it : fds) { 78 for (const auto& it : fds) {
78 PCHECK(0 == IGNORE_EINTR(close(it))); 79 PCHECK(0 == IGNORE_EINTR(close(it)));
79 } 80 }
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 const bool namespace_sandbox_engaged = sandbox_flags & kSandboxLinuxUserNS; 596 const bool namespace_sandbox_engaged = sandbox_flags & kSandboxLinuxUserNS;
596 CHECK_EQ(using_namespace_sandbox, namespace_sandbox_engaged); 597 CHECK_EQ(using_namespace_sandbox, namespace_sandbox_engaged);
597 598
598 Zygote zygote(sandbox_flags, fork_delegates.Pass(), extra_children, 599 Zygote zygote(sandbox_flags, fork_delegates.Pass(), extra_children,
599 extra_fds); 600 extra_fds);
600 // This function call can return multiple times, once per fork(). 601 // This function call can return multiple times, once per fork().
601 return zygote.ProcessRequests(); 602 return zygote.ProcessRequests();
602 } 603 }
603 604
604 } // namespace content 605 } // 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