Roll src/third_party/WebKit f298044:aa8346d (svn 202628:202629)
[chromium-blink-merge.git] / chrome / browser / importer / importer_uma.h
blobc71e6c9b823ade80d20ed8dac7e76be2c8a12aad
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_UMA_H_
6 #define CHROME_BROWSER_IMPORTER_IMPORTER_UMA_H_
8 #include <string>
9 #include "base/metrics/histogram.h"
10 #include "chrome/common/importer/importer_type.h"
12 namespace importer {
14 // Logs to UMA that an Importer of the specified |type| was used. Uses
15 // |metric_postfix| to split by entry point. Note: Values passed via
16 // |metric_postfix| require a matching "Import.ImporterType.|metric_postfix|"
17 // entry in tools/metrics/histograms/histograms.xml.
18 void LogImporterUseToMetrics(const std::string& metric_prefix,
19 ImporterType type);
21 } // namespace importer
23 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_UMA_H_