| Index: chrome/browser/metrics/variations/eula_accepted_notifier.cc
|
| ===================================================================
|
| --- chrome/browser/metrics/variations/eula_accepted_notifier.cc (revision 0)
|
| +++ chrome/browser/metrics/variations/eula_accepted_notifier.cc (revision 0)
|
| @@ -0,0 +1,29 @@
|
| +// 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.
|
| +
|
| +#include "chrome/browser/metrics/variations/eula_accepted_notifier.h"
|
| +
|
| +#include "base/logging.h"
|
| +
|
| +EulaAcceptedNotifier::EulaAcceptedNotifier() : observer_(NULL) {
|
| +}
|
| +
|
| +EulaAcceptedNotifier::~EulaAcceptedNotifier() {
|
| +}
|
| +
|
| +void EulaAcceptedNotifier::Init(Observer* observer) {
|
| + DCHECK(!observer_ && observer);
|
| + observer_ = observer;
|
| +}
|
| +
|
| +void EulaAcceptedNotifier::NotifyObserver() {
|
| + observer_->OnEulaAccepted();
|
| +}
|
| +
|
| +#if !defined(OS_CHROMEOS)
|
| +// static
|
| +EulaAcceptedNotifier* EulaAcceptedNotifier::Create() {
|
| + return NULL;
|
| +}
|
| +#endif
|
|
|