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

Side by Side Diff: ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h

Issue 2643723004: Add Desktop iOS promotion logging to chrome ios app. (Closed)
Patch Set: to be submitted 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
OLDNEW
(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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698