persistent_histograms.h 871 B

1234567891011121314151617181920
  1. // Copyright 2018 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.
  4. #ifndef COMPONENTS_METRICS_PERSISTENT_HISTOGRAMS_H_
  5. #define COMPONENTS_METRICS_PERSISTENT_HISTOGRAMS_H_
  6. #include "base/files/file_path.h"
  7. // Persistent browser metrics need to be persisted somewhere. This constant
  8. // provides a known string to be used for both the allocator's internal name
  9. // and for a file on disk (relative to metrics_dir) to which they
  10. // can be saved. This is exported so the name can also be used as a "pref"
  11. // during configuration.
  12. extern const char kBrowserMetricsName[];
  13. // Do all the checking and work necessary to enable persistent histograms.
  14. void InstantiatePersistentHistograms(const base::FilePath& metrics_dir);
  15. #endif // COMPONENTS_METRICS_PERSISTENT_HISTOGRAMS_H_