summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_main_loop.cc
diff options
context:
space:
mode:
authorhongbo.min@intel.com <hongbo.min@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-03 19:06:51 +0000
committerhongbo.min@intel.com <hongbo.min@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-03 19:06:51 +0000
commit6c5905b763d18bf2d81e2d1f4aac7f16ae32f6ea (patch)
tree86297e816ccbbe8dd10ab6fec01b350be86f63ea /content/browser/browser_main_loop.cc
parent617b65edba554089efd872e9f59f01ae964690ab (diff)
downloadchromium_src-6c5905b763d18bf2d81e2d1f4aac7f16ae32f6ea.zip
chromium_src-6c5905b763d18bf2d81e2d1f4aac7f16ae32f6ea.tar.gz
chromium_src-6c5905b763d18bf2d81e2d1f4aac7f16ae32f6ea.tar.bz2
Split the power monitoring feature from SystemMonitor
The SystemMonitor is a mixed monitor which not only monitors the power state changes but also the devices changes. This patch is to separate the power monitor from SystemMonitor as a new class PowerMonitor which is dedicated to monitor power state. The next step is to seek a opportunity to refactor SystemMonitor as something like DeviceMonitor. BUG=149059 TEST=base_unittests --gtest_filter=PowerMonitorTest.* Review URL: https://chromiumcodereview.appspot.com/10959020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192114 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_main_loop.cc')
-rw-r--r--content/browser/browser_main_loop.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index e85329f..713cdbf 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -13,6 +13,8 @@
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram.h"
#include "base/pending_task.h"
+#include "base/power_monitor/power_monitor.h"
+#include "base/system_monitor/system_monitor.h"
#include "base/run_loop.h"
#include "base/string_number_conversions.h"
#include "base/threading/thread_restrictions.h"
@@ -367,6 +369,7 @@ void BrowserMainLoop::MainMessageLoopStart() {
InitializeMainThread();
system_monitor_.reset(new base::SystemMonitor);
+ power_monitor_.reset(new base::PowerMonitor);
hi_res_timer_manager_.reset(new HighResolutionTimerManager);
network_change_notifier_.reset(net::NetworkChangeNotifier::Create());
audio_manager_.reset(media::AudioManager::Create());