Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef IOS_CHROME_BROWSER_SIGNIN_DESKTOP_PROMOTION_SYNC_OBSERVER_H_ | |
| 6 #define IOS_CHROME_BROWSER_SIGNIN_DESKTOP_PROMOTION_SYNC_OBSERVER_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "components/sync/driver/sync_service_observer.h" | |
| 10 | |
| 11 namespace browser_sync { | |
| 12 class ProfileSyncService; | |
| 13 } | |
| 14 | |
| 15 class PrefService; | |
| 16 | |
| 17 class DesktopPromotionSyncObserver : public syncer::SyncServiceObserver { | |
| 18 public: | |
| 19 DesktopPromotionSyncObserver(PrefService* pref_service, | |
| 20 browser_sync::ProfileSyncService* sync_service); | |
| 21 ~DesktopPromotionSyncObserver() override; | |
|
sdefresne
2017/01/26 17:03:25
nit: can you put a blank line before the next line
mrefaat
2017/01/26 23:34:12
Done.
| |
| 22 // ProfileSyncServiceObserver implementation. | |
| 23 void OnStateChanged() override; | |
| 24 | |
| 25 private: | |
| 26 PrefService* pref_service_; | |
| 27 browser_sync::ProfileSyncService* sync_service_; | |
| 28 bool desktop_metrics_logger_initiated_; | |
| 29 | |
| 30 DISALLOW_COPY_AND_ASSIGN(DesktopPromotionSyncObserver); | |
| 31 }; | |
| 32 | |
| 33 #endif // IOS_CHROME_BROWSER_SIGNIN_DESKTOP_PROMOTION_SYNC_OBSERVER_H_ | |
| OLD | NEW |