diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-13 17:26:21 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-13 17:26:21 +0000 |
commit | a26f4aec68d4e5637e19e156a4b34518c6a5804c (patch) | |
tree | 5ad9639e6525f6546c54f7a765c87adeba0a8b47 /base/process | |
parent | d12bf78f1d0ed66a9c20405ce4040ab3adeba76a (diff) | |
download | chromium_src-a26f4aec68d4e5637e19e156a4b34518c6a5804c.zip chromium_src-a26f4aec68d4e5637e19e156a4b34518c6a5804c.tar.gz chromium_src-a26f4aec68d4e5637e19e156a4b34518c6a5804c.tar.bz2 |
Move more file_util functions to base namespace.
TBR=jam
Review URL: https://codereview.chromium.org/189333004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256863 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process')
-rw-r--r-- | base/process/process_linux.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/base/process/process_linux.cc b/base/process/process_linux.cc index c5acf1b..d92d7c3 100644 --- a/base/process/process_linux.cc +++ b/base/process/process_linux.cc @@ -14,6 +14,8 @@ #include "base/strings/stringprintf.h" #include "base/synchronization/lock.h" +namespace base { + namespace { const int kForegroundPriority = 0; @@ -46,13 +48,13 @@ struct CGroups { base::FilePath(base::StringPrintf(kControlPath, kForeground)); background_file = base::FilePath(base::StringPrintf(kControlPath, kBackground)); - file_util::FileSystemType foreground_type; - file_util::FileSystemType background_type; + base::FileSystemType foreground_type; + base::FileSystemType background_type; enabled = - file_util::GetFileSystemType(foreground_file, &foreground_type) && - file_util::GetFileSystemType(background_file, &background_type) && - foreground_type == file_util::FILE_SYSTEM_CGROUP && - background_type == file_util::FILE_SYSTEM_CGROUP; + base::GetFileSystemType(foreground_file, &foreground_type) && + base::GetFileSystemType(background_file, &background_type) && + foreground_type == FILE_SYSTEM_CGROUP && + background_type == FILE_SYSTEM_CGROUP; } }; @@ -62,8 +64,6 @@ const int kBackgroundPriority = 5; #endif } -namespace base { - bool Process::IsProcessBackgrounded() const { DCHECK(process_); |