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

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

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

Powered by Google App Engine
This is Rietveld 408576698