diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-13 20:48:36 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-13 20:48:36 +0000 |
commit | 0a30765779382fa4cd46d47dab4db0ad607e7569 (patch) | |
tree | ae593d32fc4052115c428382f451bdd110bcf460 /base | |
parent | a211dddeb82823e7bf1baa24eb9583f95db7de4e (diff) | |
download | chromium_src-0a30765779382fa4cd46d47dab4db0ad607e7569.zip chromium_src-0a30765779382fa4cd46d47dab4db0ad607e7569.tar.gz chromium_src-0a30765779382fa4cd46d47dab4db0ad607e7569.tar.bz2 |
A new shot at the old system monitor changelist.
Review URL: http://codereview.chromium.org/12883
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6974 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-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();
//
|