| Index: ash/common/system/tray/wm_system_tray_notifier.cc
|
| diff --git a/ash/common/system/tray/wm_system_tray_notifier.cc b/ash/common/system/tray/wm_system_tray_notifier.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2137e92628f5030d40591ffbac14e1859c91824e
|
| --- /dev/null
|
| +++ b/ash/common/system/tray/wm_system_tray_notifier.cc
|
| @@ -0,0 +1,28 @@
|
| +// Copyright 2016 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 "ash/common/system/tray/wm_system_tray_notifier.h"
|
| +
|
| +#include "ash/common/system/update/update_observer.h"
|
| +
|
| +namespace ash {
|
| +
|
| +WmSystemTrayNotifier::WmSystemTrayNotifier() {}
|
| +
|
| +WmSystemTrayNotifier::~WmSystemTrayNotifier() {}
|
| +
|
| +void WmSystemTrayNotifier::AddUpdateObserver(UpdateObserver* observer) {
|
| + update_observers_.AddObserver(observer);
|
| +}
|
| +
|
| +void WmSystemTrayNotifier::RemoveUpdateObserver(UpdateObserver* observer) {
|
| + update_observers_.RemoveObserver(observer);
|
| +}
|
| +
|
| +void WmSystemTrayNotifier::NotifyUpdateRecommended(const UpdateInfo& info) {
|
| + FOR_EACH_OBSERVER(UpdateObserver, update_observers_,
|
| + OnUpdateRecommended(info));
|
| +}
|
| +
|
| +} // namespace ash
|
|
|