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_LOGGER_H_ | |
| 6 #define IOS_CHROME_BROWSER_SIGNIN_DESKTOP_PROMOTION_SYNC_OBSERVER_LOGGER_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "components/sync/driver/sync_service_observer.h" | |
| 10 | |
| 11 namespace ios { | |
| 12 class ChromeBrowserState; | |
| 13 } | |
| 14 | |
| 15 class DesktopPromotionSyncObserver : public syncer::SyncServiceObserver { | |
| 16 public: | |
| 17 explicit DesktopPromotionSyncObserver(ios::ChromeBrowserState* browser_state); | |
|
rohitrao (ping after 24h)
2017/01/23 20:31:39
What's the relationship between DesktopPromotionSy
mrefaat
2017/01/24 19:57:20
i think it's 1:1 if we ever have more than 1 profi
| |
| 18 ~DesktopPromotionSyncObserver() override; | |
| 19 // ProfileSyncServiceObserver implementation. | |
| 20 void OnStateChanged() override; | |
| 21 | |
| 22 private: | |
| 23 ios::ChromeBrowserState* browser_state_; // weak | |
| 24 bool desktop_metrics_logger_initiated_; | |
| 25 | |
| 26 DISALLOW_COPY_AND_ASSIGN(DesktopPromotionSyncObserver); | |
| 27 }; | |
| 28 | |
| 29 #endif // IOS_CHROME_BROWSER_SIGNIN_DESKTOP_PROMOTION_SYNC_OBSERVER_H_ | |
| OLD | NEW |