| Index: chrome/browser/metrics/chrome_metrics_service_client.h
|
| diff --git a/chrome/browser/metrics/chrome_metrics_service_client.h b/chrome/browser/metrics/chrome_metrics_service_client.h
|
| index 6f12e37422109a1ffcb9cbc022f1579a751d49fa..61dae93a411c5882701595f29cf46bb4108cd986 100644
|
| --- a/chrome/browser/metrics/chrome_metrics_service_client.h
|
| +++ b/chrome/browser/metrics/chrome_metrics_service_client.h
|
| @@ -23,6 +23,7 @@
|
| #include "components/metrics/proto/system_profile.pb.h"
|
| #include "components/omnibox/browser/omnibox_event_global_tracker.h"
|
| #include "components/ukm/observers/history_delete_observer.h"
|
| +#include "components/ukm/observers/sync_disable_observer.h"
|
| #include "content/public/browser/notification_observer.h"
|
| #include "content/public/browser/notification_registrar.h"
|
| #include "ppapi/features/features.h"
|
| @@ -50,7 +51,8 @@ class ProfilerMetricsProvider;
|
| class ChromeMetricsServiceClient : public metrics::MetricsServiceClient,
|
| public metrics::TrackingSynchronizerObserver,
|
| public content::NotificationObserver,
|
| - public ukm::HistoryDeleteObserver {
|
| + public ukm::HistoryDeleteObserver,
|
| + public ukm::SyncDisableObserver {
|
| public:
|
| ~ChromeMetricsServiceClient() override;
|
|
|
| @@ -86,9 +88,12 @@ class ChromeMetricsServiceClient : public metrics::MetricsServiceClient,
|
| metrics::EnableMetricsDefault GetMetricsReportingDefaultState() override;
|
| bool IsUMACellularUploadLogicEnabled() override;
|
|
|
| - // ukm::HistoryDeleteObserver
|
| + // ukm::HistoryDeleteObserver:
|
| void OnHistoryDeleted() override;
|
|
|
| + // ukm::SyncDisableObserver:
|
| + void OnSyncPrefsChanged(bool must_purge) override;
|
| +
|
| // Persistent browser metrics need to be persisted somewhere. This constant
|
| // provides a known string to be used for both the allocator's internal name
|
| // and for a file on disk (relative to chrome::DIR_USER_DATA) to which they
|
| @@ -142,8 +147,8 @@ class ChromeMetricsServiceClient : public metrics::MetricsServiceClient,
|
| // there was recent activity.
|
| void RegisterForNotifications();
|
|
|
| - // Call to listen for history deletions by the selected profile.
|
| - void RegisterForHistoryDeletions(Profile* profile);
|
| + // Call to listen for events on the selected profile's services.
|
| + void RegisterForProfileEvents(Profile* profile);
|
|
|
| // content::NotificationObserver:
|
| void Observe(int type,
|
|
|