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

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

Issue 1544293002: Convert Pass()→std::move() in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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/zygote/zygote_linux.cc ('k') | no next file » | 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 <openssl/rand.h> 9 #include <openssl/rand.h>
10 #include <pthread.h> 10 #include <pthread.h>
11 #include <signal.h> 11 #include <signal.h>
12 #include <stddef.h> 12 #include <stddef.h>
13 #include <stdint.h> 13 #include <stdint.h>
14 #include <string.h> 14 #include <string.h>
15 #include <sys/socket.h> 15 #include <sys/socket.h>
16 #include <sys/types.h> 16 #include <sys/types.h>
17 #include <unistd.h> 17 #include <unistd.h>
18 18 #include <utility>
19 #include <vector> 19 #include <vector>
20 20
21 #include "base/bind.h" 21 #include "base/bind.h"
22 #include "base/command_line.h" 22 #include "base/command_line.h"
23 #include "base/compiler_specific.h" 23 #include "base/compiler_specific.h"
24 #include "base/memory/scoped_vector.h" 24 #include "base/memory/scoped_vector.h"
25 #include "base/native_library.h" 25 #include "base/native_library.h"
26 #include "base/pickle.h" 26 #include "base/pickle.h"
27 #include "base/posix/eintr_wrapper.h" 27 #include "base/posix/eintr_wrapper.h"
28 #include "base/posix/unix_domain_socket_linux.h" 28 #include "base/posix/unix_domain_socket_linux.h"
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 #endif // SANITIZER_COVERAGE 602 #endif // SANITIZER_COVERAGE
603 603
604 const int sandbox_flags = linux_sandbox->GetStatus(); 604 const int sandbox_flags = linux_sandbox->GetStatus();
605 605
606 const bool setuid_sandbox_engaged = sandbox_flags & kSandboxLinuxSUID; 606 const bool setuid_sandbox_engaged = sandbox_flags & kSandboxLinuxSUID;
607 CHECK_EQ(using_setuid_sandbox, setuid_sandbox_engaged); 607 CHECK_EQ(using_setuid_sandbox, setuid_sandbox_engaged);
608 608
609 const bool namespace_sandbox_engaged = sandbox_flags & kSandboxLinuxUserNS; 609 const bool namespace_sandbox_engaged = sandbox_flags & kSandboxLinuxUserNS;
610 CHECK_EQ(using_namespace_sandbox, namespace_sandbox_engaged); 610 CHECK_EQ(using_namespace_sandbox, namespace_sandbox_engaged);
611 611
612 Zygote zygote(sandbox_flags, fork_delegates.Pass(), extra_children, 612 Zygote zygote(sandbox_flags, std::move(fork_delegates), extra_children,
613 extra_fds); 613 extra_fds);
614 // This function call can return multiple times, once per fork(). 614 // This function call can return multiple times, once per fork().
615 return zygote.ProcessRequests(); 615 return zygote.ProcessRequests();
616 } 616 }
617 617
618 } // namespace content 618 } // namespace content
OLDNEW
« no previous file with comments | « content/zygote/zygote_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698