| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2013 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_METRICS_VARIATIONS_EULA_ACCEPTED_NOTIFIER_MOBILE_H_ | |
| 6 #define CHROME_BROWSER_METRICS_VARIATIONS_EULA_ACCEPTED_NOTIFIER_MOBILE_H_ | |
| 7 | |
| 8 #include "chrome/browser/metrics/variations/eula_accepted_notifier.h" | |
| 9 #include "base/prefs/pref_change_registrar.h" | |
| 10 | |
| 11 class PrefService; | |
| 12 | |
| 13 // Mobile (Android and iOS) implementation of the EulaAcceptedNotifier. | |
| 14 class EulaAcceptedNotifierMobile : public EulaAcceptedNotifier { | |
| 15 public: | |
| 16 explicit EulaAcceptedNotifierMobile(PrefService* local_state); | |
| 17 virtual ~EulaAcceptedNotifierMobile(); | |
| 18 | |
| 19 // EulaAcceptedNotifier overrides: | |
| 20 virtual bool IsEulaAccepted() OVERRIDE; | |
| 21 | |
| 22 private: | |
| 23 // Callback for EULA accepted pref change notification. | |
| 24 void OnPrefChanged(); | |
| 25 | |
| 26 PrefService* local_state_; | |
| 27 | |
| 28 // Used to listen for the EULA accepted pref change notification. | |
| 29 PrefChangeRegistrar registrar_; | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(EulaAcceptedNotifierMobile); | |
| 32 }; | |
| 33 | |
| 34 #endif // CHROME_BROWSER_METRICS_VARIATIONS_EULA_ACCEPTED_NOTIFIER_MOBILE_H_ | |
| OLD | NEW |