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

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

Issue 898713004: Revert of Roll Clang 223108:228129 (Closed) Base URL: precise:/work/chromium/src@clang_roll_226907
Patch Set: Created 5 years, 10 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/bpf_dsl/bpf_dsl_more_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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #include "content/common/pepper_plugin_list.h" 57 #include "content/common/pepper_plugin_list.h"
58 #include "content/public/common/pepper_plugin_info.h" 58 #include "content/public/common/pepper_plugin_info.h"
59 #endif 59 #endif
60 60
61 #if defined(ENABLE_WEBRTC) 61 #if defined(ENABLE_WEBRTC)
62 #include "third_party/libjingle/overrides/init_webrtc.h" 62 #include "third_party/libjingle/overrides/init_webrtc.h"
63 #endif 63 #endif
64 64
65 #if defined(ADDRESS_SANITIZER) 65 #if defined(ADDRESS_SANITIZER)
66 #include <sanitizer/asan_interface.h> 66 #include <sanitizer/asan_interface.h>
67 #include <sanitizer/coverage_interface.h>
68 #endif 67 #endif
69 68
70 namespace content { 69 namespace content {
71 70
72 namespace { 71 namespace {
73 72
74 void DoChrootSignalHandler(int) { 73 void DoChrootSignalHandler(int) {
75 const int old_errno = errno; 74 const int old_errno = errno;
76 const char kFirstMessage[] = "Chroot signal handler called.\n"; 75 const char kFirstMessage[] = "Chroot signal handler called.\n";
77 ignore_result(write(STDERR_FILENO, kFirstMessage, sizeof(kFirstMessage) - 1)); 76 ignore_result(write(STDERR_FILENO, kFirstMessage, sizeof(kFirstMessage) - 1));
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 bool setuid_sandbox_engaged = sandbox_flags & kSandboxLinuxSUID; 640 bool setuid_sandbox_engaged = sandbox_flags & kSandboxLinuxSUID;
642 CHECK_EQ(must_enable_setuid_sandbox, setuid_sandbox_engaged); 641 CHECK_EQ(must_enable_setuid_sandbox, setuid_sandbox_engaged);
643 642
644 Zygote zygote(sandbox_flags, fork_delegates.Pass(), extra_children, 643 Zygote zygote(sandbox_flags, fork_delegates.Pass(), extra_children,
645 extra_fds); 644 extra_fds);
646 // This function call can return multiple times, once per fork(). 645 // This function call can return multiple times, once per fork().
647 return zygote.ProcessRequests(); 646 return zygote.ProcessRequests();
648 } 647 }
649 648
650 } // namespace content 649 } // namespace content
OLDNEW
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | sandbox/linux/bpf_dsl/bpf_dsl_more_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698