summaryrefslogtreecommitdiff
path: root/base/process/process_iterator_mac.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/process/process_iterator_mac.cc')
-rw-r--r--base/process/process_iterator_mac.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/base/process/process_iterator_mac.cc b/base/process/process_iterator_mac.cc
index 99384073ea..3d616980ab 100644
--- a/base/process/process_iterator_mac.cc
+++ b/base/process/process_iterator_mac.cc
@@ -5,11 +5,14 @@
#include "base/process/process_iterator.h"
#include <errno.h>
+#include <stddef.h>
#include <sys/sysctl.h>
#include <sys/types.h>
#include <unistd.h>
#include "base/logging.h"
+#include "base/macros.h"
+#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
namespace base {
@@ -100,7 +103,8 @@ bool ProcessIterator::CheckForNextProcess() {
// |entry_.cmd_line_args_|.
std::string delimiters;
delimiters.push_back('\0');
- Tokenize(data, delimiters, &entry_.cmd_line_args_);
+ entry_.cmd_line_args_ = SplitString(data, delimiters,
+ KEEP_WHITESPACE, SPLIT_WANT_NONEMPTY);
// |data| starts with the full executable path followed by a null character.
// We search for the first instance of '\0' and extract everything before it