| Index: chrome/browser/metrics/metrics_reporting_state.h
|
| diff --git a/chrome/browser/metrics/metrics_reporting_state.h b/chrome/browser/metrics/metrics_reporting_state.h
|
| index 303255ced27232e485725ba102f54443e5918b1c..89c1dc705d035fd66cb8db4b7428ee071565b62c 100644
|
| --- a/chrome/browser/metrics/metrics_reporting_state.h
|
| +++ b/chrome/browser/metrics/metrics_reporting_state.h
|
| @@ -13,13 +13,16 @@ typedef base::Callback<void(bool)> OnMetricsReportingCallbackType;
|
| class PrefService;
|
| class PrefRegistrySimple;
|
|
|
| -// Initiates a change to metrics reporting state to the new value of |enabled|.
|
| -// Starts or stops the metrics service based on the new state and then runs
|
| -// |callback_fn| (which can be null) with the updated state (as the operation
|
| -// may fail). On platforms other than CrOS and Android, also updates the
|
| -// underlying pref.
|
| +// Changes metrics reporting state without caring about the success of the
|
| +// change.
|
| +void ChangeMetricsReportingState(bool enabled);
|
| +
|
| +// Changes metrics reporting state to the new value of |enabled|. Starts or
|
| +// stops the metrics service based on the new state and then runs |callback_fn|
|
| +// (which can be null) with the updated state (as the operation may fail). On
|
| +// platforms other than CrOS and Android, also updates the underlying pref.
|
| // TODO(gayane): Support setting the pref on all platforms.
|
| -void InitiateMetricsReportingChange(
|
| +void ChangeMetricsReportingStateWithReply(
|
| bool enabled,
|
| const OnMetricsReportingCallbackType& callback_fn);
|
|
|
|
|