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

Unified Diff: base/system_monitor.h

Issue 118162: Reduce header dependencies in base/ (Closed)
Patch Set: Created 11 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: base/system_monitor.h
diff --git a/base/system_monitor.h b/base/system_monitor.h
index 9fcac9c88f4939c65b7bd0315b45f8028ee2c846..7eee09ddf29a2d300d3da12a7bdc0fd44953cb06 100644
--- a/base/system_monitor.h
+++ b/base/system_monitor.h
@@ -5,8 +5,7 @@
#ifndef BASE_SYSTEM_MONITOR_H_
#define BASE_SYSTEM_MONITOR_H_
-#include "base/observer_list_threadsafe.h"
-#include "base/singleton.h"
+#include "build/build_config.h"
// Windows HiRes timers drain the battery faster so we need to know the battery
// status. This isn't true for other platforms.
@@ -16,6 +15,12 @@
#undef ENABLE_BATTERY_MONITORING
#endif // !OS_WIN
+#include "base/observer_list_threadsafe.h"
+#include "base/singleton.h"
+#if defined(ENABLE_BATTERY_MONITORING)
+#include "base/timer.h"
+#endif // defined(ENABLE_BATTERY_MONITORING)
+
namespace base {
// Class for monitoring various system-related subsystems
« no previous file with comments | « base/scoped_clipboard_writer.cc ('k') | base/tracked_objects.h » ('j') | base/tracked_objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698