diff options
Diffstat (limited to 'content/browser')
-rw-r--r-- | content/browser/child_process_launcher.cc | 5 | ||||
-rw-r--r-- | content/browser/zygote_host/zygote_host_impl_linux.cc | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc index cacf138..5d7b612 100644 --- a/content/browser/child_process_launcher.cc +++ b/content/browser/child_process_launcher.cc @@ -9,6 +9,7 @@ #include "base/bind.h" #include "base/command_line.h" #include "base/file_util.h" +#include "base/files/scoped_file.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/metrics/histogram.h" @@ -228,7 +229,7 @@ class ChildProcessLauncher::Context base::ProcessHandle handle = base::kNullProcessHandle; // We need to close the client end of the IPC channel to reliably detect // child termination. - file_util::ScopedFD ipcfd_closer(&ipcfd); + base::ScopedFD ipcfd_closer(ipcfd); #if !defined(OS_MACOSX) GetContentClient()->browser()-> @@ -319,7 +320,7 @@ class ChildProcessLauncher::Context base::ProcessHandle handle) { #if defined(OS_ANDROID) // Finally close the ipcfd - file_util::ScopedFD ipcfd_closer(&ipcfd_); + base::ScopedFD ipcfd_closer(ipcfd_); #endif starting_ = false; process_.set_handle(handle); diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc index 18e9b69..aaf4d3b 100644 --- a/content/browser/zygote_host/zygote_host_impl_linux.cc +++ b/content/browser/zygote_host/zygote_host_impl_linux.cc @@ -14,6 +14,7 @@ #include "base/environment.h" #include "base/file_util.h" #include "base/files/file_enumerator.h" +#include "base/files/scoped_file.h" #include "base/linux_util.h" #include "base/logging.h" #include "base/memory/linked_ptr.h" @@ -318,7 +319,7 @@ pid_t ZygoteHostImpl::ForkRequest( std::vector<int> fds; // Scoped pointers cannot be stored in containers, so we have to use a // linked_ptr. - std::vector<linked_ptr<file_util::ScopedFD> > autodelete_fds; + std::vector<linked_ptr<base::ScopedFD> > autodelete_fds; for (std::vector<FileDescriptorInfo>::const_iterator i = mapping.begin(); i != mapping.end(); ++i) { pickle.WriteUInt32(i->id); @@ -326,8 +327,7 @@ pid_t ZygoteHostImpl::ForkRequest( if (i->fd.auto_close) { // Auto-close means we need to close the FDs after they have been passed // to the other process. - linked_ptr<file_util::ScopedFD> ptr( - new file_util::ScopedFD(&(fds.back()))); + linked_ptr<base::ScopedFD> ptr(new base::ScopedFD(fds.back())); autodelete_fds.push_back(ptr); } } |