Index: components/metrics/metrics_service_client.h |
diff --git a/components/metrics/metrics_service_client.h b/components/metrics/metrics_service_client.h |
index 858d1d87db491f533ddcc9611231115b1d41f6ba..7c56fca1aa7049cdcd865127c6434a50d0cf6295 100644 |
--- a/components/metrics/metrics_service_client.h |
+++ b/components/metrics/metrics_service_client.h |
@@ -10,7 +10,7 @@ |
#include <memory> |
#include <string> |
-#include "base/callback_forward.h" |
+#include "base/callback.h" |
#include "base/strings/string16.h" |
#include "base/time/time.h" |
#include "components/metrics/metrics_reporting_default_state.h" |
@@ -33,7 +33,8 @@ class MetricsService; |
// environment. |
class MetricsServiceClient { |
public: |
- virtual ~MetricsServiceClient() {} |
+ MetricsServiceClient(); |
+ virtual ~MetricsServiceClient(); |
// Returns the MetricsService instance that this client is associated with. |
// With the exception of testing contexts, the returned instance must be valid |
@@ -120,6 +121,15 @@ class MetricsServiceClient { |
// Returns whether cellular logic is enabled for metrics reporting. |
virtual bool IsUMACellularUploadLogicEnabled(); |
+ |
+ // Returns if history sync is enabled on all active profiles. |
+ virtual bool IsHistorySyncEnabledOnAllProfiles(); |
+ |
+ // Sets the callback to run MetricsServiceManager::UpdateRunningServices. |
+ void SetUpdateRunningServicesCallback(const base::Closure& callback); |
+ |
+ protected: |
+ base::Closure update_running_services_; |
}; |
Alexei Svitkine (slow)
2017/02/01 19:31:07
Add DISALLOW_COPY_AND_ASSIGN().
Steven Holte
2017/02/03 00:04:34
Done.
|
} // namespace metrics |