| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/system/tray/system_tray_notifier.h" | 5 #include "ash/system/tray/system_tray_notifier.h" |
| 6 | 6 |
| 7 #if defined(OS_CHROMEOS) | |
| 8 #include "ash/system/chromeos/network/network_state_notifier.h" | |
| 9 #endif | |
| 10 | |
| 11 namespace ash { | 7 namespace ash { |
| 12 | 8 |
| 13 SystemTrayNotifier::SystemTrayNotifier() { | 9 SystemTrayNotifier::SystemTrayNotifier() { |
| 14 #if defined(OS_CHROMEOS) | |
| 15 network_state_notifier_.reset(new NetworkStateNotifier()); | |
| 16 #endif | |
| 17 } | 10 } |
| 18 | 11 |
| 19 SystemTrayNotifier::~SystemTrayNotifier() { | 12 SystemTrayNotifier::~SystemTrayNotifier() { |
| 20 } | 13 } |
| 21 | 14 |
| 22 void SystemTrayNotifier::AddAccessibilityObserver( | 15 void SystemTrayNotifier::AddAccessibilityObserver( |
| 23 AccessibilityObserver* observer) { | 16 AccessibilityObserver* observer) { |
| 24 accessibility_observers_.AddObserver(observer); | 17 accessibility_observers_.AddObserver(observer); |
| 25 } | 18 } |
| 26 | 19 |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 | 371 |
| 379 void SystemTrayNotifier::NotifyLastWindowClosed() { | 372 void SystemTrayNotifier::NotifyLastWindowClosed() { |
| 380 FOR_EACH_OBSERVER(LastWindowClosedObserver, | 373 FOR_EACH_OBSERVER(LastWindowClosedObserver, |
| 381 last_window_closed_observers_, | 374 last_window_closed_observers_, |
| 382 OnLastWindowClosed()); | 375 OnLastWindowClosed()); |
| 383 } | 376 } |
| 384 | 377 |
| 385 #endif // OS_CHROMEOS | 378 #endif // OS_CHROMEOS |
| 386 | 379 |
| 387 } // namespace ash | 380 } // namespace ash |
| OLD | NEW |