OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_METRICS_METRICS_REPORTING_STATE_H_ | 5 #ifndef CHROME_BROWSER_METRICS_METRICS_REPORTING_STATE_H_ |
6 #define CHROME_BROWSER_METRICS_METRICS_REPORTING_STATE_H_ | 6 #define CHROME_BROWSER_METRICS_METRICS_REPORTING_STATE_H_ |
7 | 7 |
8 // Tries to set crash stats upload consent to |enabled|. Regardless of success, | 8 #include "base/callback.h" |
9 // if crash stats uploading is enabled, starts the MetricsService; otherwise | 9 #include "components/metrics/metrics_service.h" |
10 // stops it. | 10 |
11 // Returns whether crash stats uploading is enabled. | 11 |
12 // TODO(tfarina): This method is pretty confusing. Clean this up and rename it | 12 // Initiates the necessary changes for MetricsReportingEnabled change on a |
13 // to something that makes more sense. | 13 // thread with IO access. The parameter |enabled| indicates whether |
14 bool ResolveMetricsReportingEnabled(bool enabled); | 14 // MetricsReportingEnabled should be true or false and |callback_fn| is a |
Alexei Svitkine (slow)
2014/09/05 20:50:25
How about this wording which also talks about metr
gayane -on leave until 09-2017
2014/09/08 18:32:46
Done.
On 2014/09/05 20:50:25, Alexei Svitkine wro
| |
15 // reference to a callback function which will be called with a success status. | |
16 // |callback_fn| can be null. | |
17 // TODO(gayane) Currently this function doesn't change the preference for CrOS. | |
Alexei Svitkine (slow)
2014/09/05 20:50:25
Mention that it doesn't support Android either. (B
gayane -on leave until 09-2017
2014/09/08 18:32:46
Acknowledged.
| |
18 void InitiateMetricsReportingChange(bool enabled, | |
19 base::Callback<void(bool)> callback_fn); | |
20 | |
21 // Returns whether MetricsReporting can be modified by the user. | |
22 bool IsMetricsReportingUserChangable(); | |
15 | 23 |
16 #endif // CHROME_BROWSER_METRICS_METRICS_REPORTING_STATE_H_ | 24 #endif // CHROME_BROWSER_METRICS_METRICS_REPORTING_STATE_H_ |
OLD | NEW |