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

Side by Side Diff: chrome/browser/metrics/variations/eula_accepted_notifier_mobile.h

Issue 16129004: Consolidate EulaAcceptedNotifier implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698