Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_client.cc

Issue 2700443002: Fix MetricsServiceClients to use SyncDisableObservers state. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_service_client.h ('k') | ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698