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

Side by Side Diff: base/system_monitor/system_monitor.cc

Issue 18119002: Use a direct include of time headers in base/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 7 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « base/sys_info.cc ('k') | base/task_runner.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 "base/system_monitor/system_monitor.h" 5 #include "base/system_monitor/system_monitor.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/time.h" 11 #include "base/time/time.h"
12 12
13 namespace base { 13 namespace base {
14 14
15 static SystemMonitor* g_system_monitor = NULL; 15 static SystemMonitor* g_system_monitor = NULL;
16 16
17 SystemMonitor::SystemMonitor() 17 SystemMonitor::SystemMonitor()
18 : devices_changed_observer_list_( 18 : devices_changed_observer_list_(
19 new ObserverListThreadSafe<DevicesChangedObserver>()) { 19 new ObserverListThreadSafe<DevicesChangedObserver>()) {
20 DCHECK(!g_system_monitor); 20 DCHECK(!g_system_monitor);
21 g_system_monitor = this; 21 g_system_monitor = this;
(...skipping 21 matching lines...) Expand all
43 devices_changed_observer_list_->RemoveObserver(obs); 43 devices_changed_observer_list_->RemoveObserver(obs);
44 } 44 }
45 45
46 void SystemMonitor::NotifyDevicesChanged(DeviceType device_type) { 46 void SystemMonitor::NotifyDevicesChanged(DeviceType device_type) {
47 DVLOG(1) << "DevicesChanged with device type " << device_type; 47 DVLOG(1) << "DevicesChanged with device type " << device_type;
48 devices_changed_observer_list_->Notify( 48 devices_changed_observer_list_->Notify(
49 &DevicesChangedObserver::OnDevicesChanged, device_type); 49 &DevicesChangedObserver::OnDevicesChanged, device_type);
50 } 50 }
51 51
52 } // namespace base 52 } // namespace base
OLDNEW
« no previous file with comments | « base/sys_info.cc ('k') | base/task_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698