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

Unified Diff: ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.cc

Issue 2657673004: Add shutdown notification and service refs to SyncServiceObserver. (Closed)
Patch Set: Chromeos fix Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.cc
diff --git a/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.cc b/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.cc
index 62208d02523761026290affda0f12c86a6361ed0..0188b287e147278da870e6f6c3d9c82a023c8d9d 100644
--- a/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.cc
+++ b/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.cc
@@ -38,7 +38,7 @@ DesktopPromotionSyncObserver::~DesktopPromotionSyncObserver() {
sync_service_->RemoveObserver(this);
}
-void DesktopPromotionSyncObserver::OnStateChanged() {
+void DesktopPromotionSyncObserver::OnStateChanged(syncer::SyncService* sync) {
if (desktop_metrics_logger_initiated_ ||
!sync_service_->GetActiveDataTypes().Has(syncer::PRIORITY_PREFERENCES)) {
return;
« no previous file with comments | « ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.h ('k') | ios/chrome/browser/sync/sync_observer_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698