diff options
Diffstat (limited to 'base/system_monitor.h')
-rw-r--r-- | base/system_monitor.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/base/system_monitor.h b/base/system_monitor.h index 7a2d4d5..cfcb08a 100644 --- a/base/system_monitor.h +++ b/base/system_monitor.h @@ -17,11 +17,15 @@ class SystemMonitor { public:
// Access to the Singleton
static SystemMonitor* Get() {
- return Singleton<SystemMonitor>::get();
+ // Uses the LeakySingletonTrait because cleanup is optional.
+ return
+ Singleton<SystemMonitor, LeakySingletonTraits<SystemMonitor> >::get();
}
- // To start the System Monitor within an application
- // use this call.
+ // Start the System Monitor within a process. This method
+ // is provided so that the battery check can be deferred.
+ // The MessageLoop must be started before calling this
+ // method.
static void Start();
//
|