Index: base/process/process_linux.cc |
diff --git a/base/process/process_linux.cc b/base/process/process_linux.cc |
index 6e10dd2301fb6064e4b82ec6984d089517e549d3..958ffd6dafb840792910f3c501de60bad3761aa6 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; |