diff options
Diffstat (limited to 'base/process/process_linux.cc')
-rw-r--r-- | base/process/process_linux.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/process/process_linux.cc b/base/process/process_linux.cc index 6e10dd2..958ffd6 100644 --- a/base/process/process_linux.cc +++ b/base/process/process_linux.cc @@ -102,8 +102,8 @@ bool Process::IsProcessBackgrounded() const { if (base::ReadFileToString( base::FilePath(StringPrintf(kProcPath, process_)), &proc)) { - std::vector<std::string> proc_parts; - base::SplitString(proc, ':', &proc_parts); + std::vector<std::string> proc_parts = base::SplitString( + proc, ":", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); DCHECK_EQ(proc_parts.size(), 3u); bool ret = proc_parts[2] == std::string(kBackground); return ret; |