Chromium Code Reviews| Index: base/process_util_linux.cc |
| diff --git a/base/process_util_linux.cc b/base/process_util_linux.cc |
| deleted file mode 100644 |
| index b76f8c184c3f144af50349ee16bf6da405d75bfd..0000000000000000000000000000000000000000 |
| --- a/base/process_util_linux.cc |
| +++ /dev/null |
| @@ -1,51 +0,0 @@ |
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
Robert Sesek
2013/07/18 14:43:54
I forgot to remove this file in my previous CL, th
|
| -// Use of this source code is governed by a BSD-style license that can be |
| -// found in the LICENSE file. |
| - |
| -#include "base/process_util.h" |
| - |
| -#include <dirent.h> |
| -#include <malloc.h> |
| -#include <sys/time.h> |
| -#include <sys/types.h> |
| -#include <unistd.h> |
| - |
| -#include "base/file_util.h" |
| -#include "base/logging.h" |
| -#include "base/process/internal_linux.h" |
| -#include "base/strings/string_number_conversions.h" |
| -#include "base/strings/string_split.h" |
| -#include "base/strings/string_util.h" |
| -#include "base/sys_info.h" |
| -#include "base/threading/thread_restrictions.h" |
| - |
| -namespace base { |
| - |
| -size_t g_oom_size = 0U; |
| - |
| -const char kProcSelfExe[] = "/proc/self/exe"; |
| - |
| -ProcessId GetParentProcessId(ProcessHandle process) { |
| - ProcessId pid = |
| - internal::ReadProcStatsAndGetFieldAsInt(process, internal::VM_PPID); |
| - if (pid) |
| - return pid; |
| - return -1; |
| -} |
| - |
| -FilePath GetProcessExecutablePath(ProcessHandle process) { |
| - FilePath stat_file = internal::GetProcPidDir(process).Append("exe"); |
| - FilePath exe_name; |
| - if (!file_util::ReadSymbolicLink(stat_file, &exe_name)) { |
| - // No such process. Happens frequently in e.g. TerminateAllChromeProcesses |
| - return FilePath(); |
| - } |
| - return exe_name; |
| -} |
| - |
| -int GetNumberOfThreads(ProcessHandle process) { |
| - return internal::ReadProcStatsAndGetFieldAsInt(process, |
| - internal::VM_NUMTHREADS); |
| -} |
| - |
| -} // namespace base |