| 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_CHROMEOS_H_ | |
| 6 #define CHROME_BROWSER_METRICS_VARIATIONS_EULA_ACCEPTED_NOTIFIER_CHROMEOS_H_ | |
| 7 | |
| 8 #include "chrome/browser/metrics/variations/eula_accepted_notifier.h" | |
| 9 #include "content/public/browser/notification_observer.h" | |
| 10 #include "content/public/browser/notification_registrar.h" | |
| 11 | |
| 12 // ChromeOS implementation of the EulaAcceptedNotifier. | |
| 13 class EulaAcceptedNotifierChromeos : public EulaAcceptedNotifier, | |
| 14 public content::NotificationObserver { | |
| 15 public: | |
| 16 EulaAcceptedNotifierChromeos(); | |
| 17 virtual ~EulaAcceptedNotifierChromeos(); | |
| 18 | |
| 19 // EulaAcceptedNotifier overrides: | |
| 20 virtual bool IsEulaAccepted() OVERRIDE; | |
| 21 | |
| 22 private: | |
| 23 // content::NotificationObserver overrides: | |
| 24 virtual void Observe(int type, | |
| 25 const content::NotificationSource& source, | |
| 26 const content::NotificationDetails& details) OVERRIDE; | |
| 27 | |
| 28 // Used to listen for the EULA accepted notification. | |
| 29 content::NotificationRegistrar registrar_; | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(EulaAcceptedNotifierChromeos); | |
| 32 }; | |
| 33 | |
| 34 #endif // CHROME_BROWSER_METRICS_VARIATIONS_EULA_ACCEPTED_NOTIFIER_CHROMEOS_H_ | |
| OLD | NEW |