Fix split in base::ProcessIsProcessBackgrounded()

Most Unix files end in newline, so by having the contents of
/proc/<pid>/cgroup by newline with SPLIT_WANT_ALL, the last entry was
always blank, triggering a NOTREACHED() and polluting the log. This
change uses SPLIT_WANT_NONEMPTY instead to get rid of empty lines.

BUG=548818
TEST=base_unittests --gtest_filter=ProcessTest.TestIsProcessBackgroundedCGroup

Review URL: https://codereview.chromium.org/1474483002

Cr-Commit-Position: refs/heads/master@{#361383}


CrOS-Libchrome-Original-Commit: 99fbcf8043ece4e72b5d15fee9be6d29b562aa06
2 files changed
tree: e9914edc9af8440710da9731b02a3567fcb7e735
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/