Chromium Code Reviews| 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,30 @@ |
| +// 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 |
| + |
|
SteveT
2013/04/05 22:16:41
nit: Could you check to see if there is an extra l
Alexei Svitkine (slow)
2013/04/08 14:48:41
Done.
|