summaryrefslogtreecommitdiffstats
path: root/chrome/browser/metrics/metrics_reporting_state.h
blob: c333d84e52b87cfbe39697c3be71c829659838a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) 2011 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.

#ifndef CHROME_BROWSER_METRICS_METRICS_REPORTING_STATE_H_
#define CHROME_BROWSER_METRICS_METRICS_REPORTING_STATE_H_

// Tries to set crash stats upload consent to |enabled|. Regardless of success,
// if crash stats uploading is enabled, starts the MetricsService; otherwise
// stops it.
// Returns whether crash stats uploading is enabled.
// TODO(tfarina): This method is pretty confusing. Clean this up and rename it
// to something that makes more sense.
bool ResolveMetricsReportingEnabled(bool enabled);

#endif  // CHROME_BROWSER_METRICS_METRICS_REPORTING_STATE_H_