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

Side by Side Diff: chrome/browser/metrics/variations/eula_accepted_notifier.cc

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 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 #include "chrome/browser/metrics/variations/eula_accepted_notifier.h"
6
7 #include "base/logging.h"
8
9 EulaAcceptedNotifier::EulaAcceptedNotifier() : observer_(NULL) {
10 }
11
12 EulaAcceptedNotifier::~EulaAcceptedNotifier() {
13 }
14
15 void EulaAcceptedNotifier::Init(Observer* observer) {
16 DCHECK(!observer_ && observer);
17 observer_ = observer;
18 }
19
20 void EulaAcceptedNotifier::NotifyObserver() {
21 observer_->OnEulaAccepted();
22 }
23
24 #if !defined(OS_CHROMEOS)
25 // static
26 EulaAcceptedNotifier* EulaAcceptedNotifier::Create() {
27 return NULL;
28 }
29 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698