summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 19:07:32 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 19:07:32 +0000
commit322f7f7005061fee5e3b691e6aee318ea93a7eb8 (patch)
tree4d743cbbbee965d8b087171b9ee315f2ffc93865 /chrome/browser/browser_main.cc
parenta618550847f7c09eea7bb27e43bb226f330e5525 (diff)
downloadchromium_src-322f7f7005061fee5e3b691e6aee318ea93a7eb8.zip
chromium_src-322f7f7005061fee5e3b691e6aee318ea93a7eb8.tar.gz
chromium_src-322f7f7005061fee5e3b691e6aee318ea93a7eb8.tar.bz2
Change to integrate SystemMonitor changes into chrome.
This enables the dynamic detection of battery status changes so that we can turn on/off the hi-res timer. Review URL: http://codereview.chromium.org/10264 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5489 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index 6aba314..5335921 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -15,6 +15,7 @@
#include "base/process_util.h"
#include "base/registry.h"
#include "base/string_util.h"
+#include "base/system_monitor.h"
#include "base/tracked_objects.h"
#include "base/win_util.h"
#include "chrome/app/result_codes.h"
@@ -270,6 +271,9 @@ int BrowserMain(CommandLine &parsed_command_line,
MessageLoop main_message_loop(MessageLoop::TYPE_UI);
+ // Initialize the SystemMonitor
+ base::SystemMonitor::Start();
+
// Initialize statistical testing infrastructure.
FieldTrialList field_trial;