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

Unified Diff: chrome/browser/metrics/variations/eula_accepted_notifier_chromeos.h

Issue 13620010: Refactor ResourceRequestAllowedNotifier EULA checking into a separate class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/metrics/variations/eula_accepted_notifier_chromeos.h
===================================================================
--- chrome/browser/metrics/variations/eula_accepted_notifier_chromeos.h (revision 0)
+++ chrome/browser/metrics/variations/eula_accepted_notifier_chromeos.h (revision 0)
@@ -0,0 +1,34 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_METRICS_VARIATIONS_EULA_ACCEPTED_NOTIFIER_CHROMEOS_H_
+#define CHROME_BROWSER_METRICS_VARIATIONS_EULA_ACCEPTED_NOTIFIER_CHROMEOS_H_
+
+#include "chrome/browser/metrics/variations/eula_accepted_notifier.h"
+#include "content/public/browser/notification_observer.h"
+#include "content/public/browser/notification_registrar.h"
+
+// ChromeOS implementation of the EulaAcceptedNotifier.
+class EulaAcceptedNotifierChromeos : public EulaAcceptedNotifier,
+ public content::NotificationObserver {
+ public:
+ EulaAcceptedNotifierChromeos();
+ virtual ~EulaAcceptedNotifierChromeos();
+
+ // EulaAcceptedNotifier overrides:
+ virtual bool IsEulaAccepted() OVERRIDE;
+
+ private:
+ // content::NotificationObserver overrides:
+ virtual void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) OVERRIDE;
+
+ // Used to listen for the EULA accepted notification.
+ content::NotificationRegistrar registrar_;
+
+ DISALLOW_COPY_AND_ASSIGN(EulaAcceptedNotifierChromeos);
+};
+
+#endif // CHROME_BROWSER_METRICS_VARIATIONS_EULA_ACCEPTED_NOTIFIER_CHROMEOS_H_

Powered by Google App Engine
This is Rietveld 408576698