Chromium Code Reviews| Index: chrome/browser/metrics/metrics_reporting_state.cc |
| diff --git a/chrome/browser/metrics/metrics_reporting_state.cc b/chrome/browser/metrics/metrics_reporting_state.cc |
| index 1b748a6ac32d765028873f23f51b2f43bb637299..7128819d95cc9898164cf69d15f4353598959931 100644 |
| --- a/chrome/browser/metrics/metrics_reporting_state.cc |
| +++ b/chrome/browser/metrics/metrics_reporting_state.cc |
| @@ -93,16 +93,20 @@ void OnDeviceSettingChange() { |
| bool enable_metrics = false; |
| chromeos::CrosSettings::Get()->GetBoolean(chromeos::kStatsReportingPref, |
| &enable_metrics); |
| - InitiateMetricsReportingChange(enable_metrics, |
| - OnMetricsReportingCallbackType()); |
| + ChangeMetricsReportingState(enable_metrics); |
| } |
| #endif |
| } // namespace |
| +void ChangeMetricsReportingState(bool enabled) { |
| + ChangeMetricsReportingStateWithReply(enabled, |
| + OnMetricsReportingCallbackType()); |
| +} |
|
Ilya Sherman
2016/08/05 03:39:06
nit: Please define this in the same order in the .
gayane -on leave until 09-2017
2016/08/05 17:31:43
Done.
|
| + |
| // TODO(gayane): Instead of checking policy before setting the metrics pref set |
| // the pref and register for notifications for the rest of the changes. |
| -void InitiateMetricsReportingChange( |
| +void ChangeMetricsReportingStateWithReply( |
| bool enabled, |
| const OnMetricsReportingCallbackType& callback_fn) { |
| #if !defined(OS_ANDROID) |