| Index: components/browser_watcher/stability_metrics.cc
|
| diff --git a/components/browser_watcher/stability_metrics.cc b/components/browser_watcher/stability_metrics.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0ec6675db985c1bb6a4a9159f4f567cd2a2fd029
|
| --- /dev/null
|
| +++ b/components/browser_watcher/stability_metrics.cc
|
| @@ -0,0 +1,21 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "components/browser_watcher/stability_metrics.h"
|
| +
|
| +#include "base/metrics/histogram_macros.h"
|
| +
|
| +namespace browser_watcher {
|
| +
|
| +void LogCollectOnCrashEvent(CollectOnCrashEvent event) {
|
| + UMA_HISTOGRAM_ENUMERATION("ActivityTracker.CollectCrash.Event", event,
|
| + CollectOnCrashEvent::kCollectOnCrashEventMax);
|
| +}
|
| +
|
| +void LogStabilityRecordEvent(StabilityRecordEvent event) {
|
| + UMA_HISTOGRAM_ENUMERATION("ActivityTracker.Record.Event", event,
|
| + StabilityRecordEvent::kStabilityRecordEventMax);
|
| +}
|
| +
|
| +} // namespace browser_watcher
|
|
|