Separate vmstat data from SystemMemoryInfoKB

Before this CL GetSystemMemoryInfoKB() read /proc/meminfo
and /proc/vmstat. Reading these files may be denied by SELinux
policy and GetSystemMemoryInfoKB() returns true only when both
reading succeeded. For clients which only need data from one file,
this behavior is redundant and difficult to check result. This CL
separates data from /proc/vmstat into another struct.

Bug: 776291
Change-Id: I1b32bc9cc118b6bc78d776c6dcba099fff605e90
Reviewed-on: https://chromium-review.googlesource.com/727581
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Commit-Queue: Kenichi Ishibashi <bashi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#510725}

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