diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 00:35:36 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 00:35:36 +0000 |
commit | 76eb0247d08fa6c503517ec1a0cb8e6566cd39c7 (patch) | |
tree | e14c2632fab2f76df22827fe0c7908fd54240699 /base/process_util_linux.cc | |
parent | 7f8aff5b10859950cf9a6996a5d3d288ea3c75f4 (diff) | |
download | chromium_src-76eb0247d08fa6c503517ec1a0cb8e6566cd39c7.zip chromium_src-76eb0247d08fa6c503517ec1a0cb8e6566cd39c7.tar.gz chromium_src-76eb0247d08fa6c503517ec1a0cb8e6566cd39c7.tar.bz2 |
base: Move SplitString functions into the base namespace and update the callers.
BUG=None
TEST=trybots
Review URL: http://codereview.chromium.org/3750001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62483 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_linux.cc')
-rw-r--r-- | base/process_util_linux.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/process_util_linux.cc b/base/process_util_linux.cc index 4c034c4..231db59 100644 --- a/base/process_util_linux.cc +++ b/base/process_util_linux.cc @@ -39,7 +39,7 @@ bool GetProcStats(pid_t pid, std::vector<std::string>* proc_stats) { std::string mem_stats; if (!file_util::ReadFileToString(stat_file, &mem_stats)) return false; - SplitString(mem_stats, ' ', proc_stats); + base::SplitString(mem_stats, ' ', proc_stats); return true; } @@ -358,7 +358,7 @@ bool ProcessMetrics::GetWorkingSetKBytes(WorkingSetKBytes* ws_usage) const { return false; std::vector<std::string> statm_vec; - SplitString(statm, ' ', &statm_vec); + base::SplitString(statm, ' ', &statm_vec); if (statm_vec.size() != 7) return false; // Not the format we expect. @@ -434,7 +434,7 @@ int ParseProcStatCPU(const std::string& input) { // 0-indexed 11th and 12th are utime and stime. On two different machines // I found 42 and 39 fields, so let's just expect the ones we need. std::vector<std::string> fields; - SplitString(input.substr(rparen + 2), ' ', &fields); + base::SplitString(input.substr(rparen + 2), ' ', &fields); if (fields.size() < 13) return -1; // Output not in the format we expect. |