Add ProcessMetrics::CreateCurrentProcessMetrics() method.

Code that creates a ProcessMetrics object can be confusing because
ProcessMetrics::CreateProcessMetrics() has a different signature on Mac.
The extra Mac parameter isn't required when creating a ProcessMetrics
object for the current process (which is a common thing to do).

To allow simplification of code that creates a ProcessMetrics object
for the current process, this CL introduces a new
ProcessMetrics::CreateCurrentProcessMetrics() method, which has the
same signature on all platforms.

BUG=553266

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

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


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