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 CHROME_BROWSER_DESKTOP_PROMOTION_DESKTOP_PROMOTION_SYNC_SERVICE_H | |
| 6 #define CHROME_BROWSER_DESKTOP_PROMOTION_DESKTOP_PROMOTION_SYNC_SERVICE_H | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "components/browser_sync/profile_sync_service.h" | |
| 10 #include "ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.h " | |
| 11 | |
| 12 namespace user_prefs { | |
| 13 class PrefRegistrySyncable; | |
| 14 } | |
| 15 | |
| 16 // // This class is responsible for creating a DesktopPromotionSyncObserver | |
|
sdefresne
2017/01/30 16:45:54
nit: Remove one of the duplicated "//"
mrefaat
2017/01/30 17:27:06
Acknowledged.
| |
| 17 // after the main browser state is initialized. | |
| 18 // An object from this class should only be created by | |
| 19 // DesktopPromotionSyncServiceFactory. | |
| 20 class DesktopPromotionSyncService : public KeyedService { | |
| 21 public: | |
| 22 // Only the DesktopPromotionSyncServiceFactory and tests should call this. | |
| 23 DesktopPromotionSyncService(PrefService* pref_service, | |
| 24 browser_sync::ProfileSyncService* sync_service); | |
| 25 | |
| 26 ~DesktopPromotionSyncService() override; | |
| 27 | |
| 28 // Register profile specific desktop promotion related preferences. | |
| 29 static void RegisterDesktopPromotionUserPrefs( | |
| 30 user_prefs::PrefRegistrySyncable* registry); | |
| 31 | |
| 32 private: | |
| 33 DesktopPromotionSyncObserver observer_; | |
| 34 }; | |
| 35 | |
| 36 #endif // CHROME_BROWSER_DESKTOP_PROMOTION_DESKTOP_PROMOTION_SYNC_SERVICE_H | |
| OLD | NEW |