diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-09-18 14:34:04 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-10-04 11:15:27 +0000 |
commit | e6430e577f105ad8813c92e75c54660c4985026e (patch) | |
tree | 88115e5d1fb471fea807111924dcccbeadbf9e4f /chromium/components/variations/metrics.cc | |
parent | 53d399fe6415a96ea6986ec0d402a9c07da72453 (diff) | |
download | qtwebengine-chromium-e6430e577f105ad8813c92e75c54660c4985026e.tar.gz |
BASELINE: Update Chromium to 61.0.3163.99
Change-Id: I8452f34574d88ca2b27af9bd56fc9ff3f16b1367
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/components/variations/metrics.cc')
-rw-r--r-- | chromium/components/variations/metrics.cc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chromium/components/variations/metrics.cc b/chromium/components/variations/metrics.cc new file mode 100644 index 00000000000..a59d3d6920e --- /dev/null +++ b/chromium/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 |