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

Side by Side Diff: ash/system/tray/system_tray_notifier.cc

Issue 673713003: Create a NetworkConnect class and Delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More virtual fixes Created 6 years, 1 month 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
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | ash/test/test_system_tray_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | ash/test/test_system_tray_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698