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

Side by Side Diff: ios/chrome/browser/metrics/ios_chrome_metrics_service_client.mm

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
« no previous file with comments | « ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698