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