diff options
Diffstat (limited to 'chromium/base/process/internal_linux.cc')
-rw-r--r-- | chromium/base/process/internal_linux.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chromium/base/process/internal_linux.cc b/chromium/base/process/internal_linux.cc index 35b491738af..41cae833a24 100644 --- a/chromium/base/process/internal_linux.cc +++ b/chromium/base/process/internal_linux.cc @@ -13,6 +13,7 @@ #include "base/files/file_util.h" #include "base/logging.h" +#include "base/notreached.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_split.h" #include "base/strings/string_util.h" @@ -56,6 +57,7 @@ pid_t ProcDirSlotToPid(const char* d_name) { } bool ReadProcFile(const FilePath& file, std::string* buffer) { + DCHECK(FilePath(kProcDir).IsParent(file)); buffer->clear(); // Synchronously reading files in /proc is safe. ThreadRestrictions::ScopedAllowIO allow_io; |