| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/metrics/chrome_metrics_service_client.h" | 5 #include "chrome/browser/metrics/chrome_metrics_service_client.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 void ChromeMetricsServiceClient::OnSyncPrefsChanged(bool must_purge) { | 955 void ChromeMetricsServiceClient::OnSyncPrefsChanged(bool must_purge) { |
| 956 if (!ukm_service_) | 956 if (!ukm_service_) |
| 957 return; | 957 return; |
| 958 if (must_purge) { | 958 if (must_purge) { |
| 959 ukm_service_->Purge(); | 959 ukm_service_->Purge(); |
| 960 ukm_service_->ResetClientId(); | 960 ukm_service_->ResetClientId(); |
| 961 } | 961 } |
| 962 // Signal service manager to enable/disable UKM based on new state. | 962 // Signal service manager to enable/disable UKM based on new state. |
| 963 UpdateRunningServices(); | 963 UpdateRunningServices(); |
| 964 } | 964 } |
| 965 |
| 966 bool ChromeMetricsServiceClient::IsHistorySyncEnabledOnAllProfiles() { |
| 967 return SyncDisableObserver::IsHistorySyncEnabledOnAllProfiles(); |
| 968 } |
| OLD | NEW |