| Index: components/variations/metrics.cc
|
| diff --git a/components/variations/metrics.cc b/components/variations/metrics.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a59d3d6920e85397a64e1a6614b7e4242ef7e09e
|
| --- /dev/null
|
| +++ b/components/variations/metrics.cc
|
| @@ -0,0 +1,28 @@
|
| +// 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/variations/metrics.h"
|
| +
|
| +#include "base/metrics/histogram_macros.h"
|
| +
|
| +namespace variations {
|
| +
|
| +#if defined(OS_ANDROID)
|
| +void RecordFirstRunSeedImportResult(FirstRunSeedImportResult result) {
|
| + UMA_HISTOGRAM_ENUMERATION("Variations.FirstRunResult", result,
|
| + FirstRunSeedImportResult::ENUM_SIZE);
|
| +}
|
| +#endif // OS_ANDROID
|
| +
|
| +void RecordLoadSeedResult(LoadSeedResult state) {
|
| + UMA_HISTOGRAM_ENUMERATION("Variations.SeedLoadResult", state,
|
| + LoadSeedResult::ENUM_SIZE);
|
| +}
|
| +
|
| +void RecordStoreSeedResult(StoreSeedResult result) {
|
| + UMA_HISTOGRAM_ENUMERATION("Variations.SeedStoreResult", result,
|
| + StoreSeedResult::ENUM_SIZE);
|
| +}
|
| +
|
| +} // namespace variations
|
|
|