| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h" | 5 #include "ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 void IOSChromeMetricsServiceClient::OnSyncPrefsChanged(bool must_purge) { | 367 void IOSChromeMetricsServiceClient::OnSyncPrefsChanged(bool must_purge) { |
| 368 if (!ukm_service_) | 368 if (!ukm_service_) |
| 369 return; | 369 return; |
| 370 if (must_purge) { | 370 if (must_purge) { |
| 371 ukm_service_->Purge(); | 371 ukm_service_->Purge(); |
| 372 ukm_service_->ResetClientId(); | 372 ukm_service_->ResetClientId(); |
| 373 } | 373 } |
| 374 // Signal service manager to enable/disable UKM based on new state. | 374 // Signal service manager to enable/disable UKM based on new state. |
| 375 UpdateRunningServices(); | 375 UpdateRunningServices(); |
| 376 } | 376 } |
| 377 |
| 378 bool IOSChromeMetricsServiceClient::IsHistorySyncEnabledOnAllProfiles() { |
| 379 return SyncDisableObserver::IsHistorySyncEnabledOnAllProfiles(); |
| 380 } |
| OLD | NEW |