Chromium Code Reviews| Index: ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.h |
| diff --git a/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.h b/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..96f3bf7e7c2d9281ec44c21f25f2f40533e6627e |
| --- /dev/null |
| +++ b/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef IOS_CHROME_BROWSER_SIGNIN_DESKTOP_PROMOTION_SYNC_OBSERVER_H_ |
| +#define IOS_CHROME_BROWSER_SIGNIN_DESKTOP_PROMOTION_SYNC_OBSERVER_H_ |
| + |
| +#include "base/macros.h" |
| +#include "components/sync/driver/sync_service_observer.h" |
| + |
| +namespace browser_sync { |
| +class ProfileSyncService; |
| +} |
| + |
| +class PrefService; |
| + |
| +class DesktopPromotionSyncObserver : public syncer::SyncServiceObserver { |
| + public: |
| + DesktopPromotionSyncObserver(PrefService* pref_service, |
| + browser_sync::ProfileSyncService* sync_service); |
| + ~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.
|
| + // ProfileSyncServiceObserver implementation. |
| + void OnStateChanged() override; |
| + |
| + private: |
| + PrefService* pref_service_; |
| + browser_sync::ProfileSyncService* sync_service_; |
| + bool desktop_metrics_logger_initiated_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(DesktopPromotionSyncObserver); |
| +}; |
| + |
| +#endif // IOS_CHROME_BROWSER_SIGNIN_DESKTOP_PROMOTION_SYNC_OBSERVER_H_ |