Chromium Code Reviews| Index: components/metrics/metrics_service.h |
| diff --git a/components/metrics/metrics_service.h b/components/metrics/metrics_service.h |
| index 904147454ed490eafc424edf046475a15db67d24..62648388a4799f360540dbd690139f5b15b5c5d5 100644 |
| --- a/components/metrics/metrics_service.h |
| +++ b/components/metrics/metrics_service.h |
| @@ -27,6 +27,7 @@ |
| #include "components/metrics/metrics_log.h" |
| #include "components/metrics/metrics_log_manager.h" |
| #include "components/metrics/metrics_provider.h" |
| +#include "components/metrics/net/network_metrics_provider.h" |
| #include "components/variations/active_field_trials.h" |
| class MetricsServiceAccessor; |
| @@ -242,6 +243,10 @@ class MetricsService : public base::HistogramFlattener { |
| // Clears the stability metrics that are saved in local state. |
| void ClearSavedStabilityMetrics(); |
| + // Sets the connection type callback. |
|
Alexei Svitkine (slow)
2015/02/23 20:18:15
Nit: Mention "that will be passed down to the sche
gayane -on leave until 09-2017
2015/02/23 20:27:53
Done.
|
| + void SetConnectionTypeCallback( |
| + base::Callback<void(bool*)> is_cellular_callback); |
| + |
| protected: |
| // Exposed for testing. |
| MetricsLogManager* log_manager() { return &log_manager_; } |
| @@ -481,6 +486,9 @@ class MetricsService : public base::HistogramFlattener { |
| // exited-cleanly bit in the prefs. |
| static ShutdownCleanliness clean_shutdown_status_; |
| + // Callback function used to get current network connection type. |
| + base::Callback<void(bool*)> is_cellular_callback_; |
| + |
| FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess); |
| FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, |
| PermutedEntropyCacheClearedWhenLowEntropyReset); |