Index: content/child/child_thread.cc |
diff --git a/content/child/child_thread.cc b/content/child/child_thread.cc |
index d41c5aeeddf12c9a851d9daee69ef54a1c0d53bd..fb675ea1359f9f568283870b6619ec5e471b4c0d 100644 |
--- a/content/child/child_thread.cc |
+++ b/content/child/child_thread.cc |
@@ -19,6 +19,7 @@ |
#include "content/child/child_process.h" |
#include "content/child/child_resource_message_filter.h" |
#include "content/child/fileapi/file_system_dispatcher.h" |
+#include "content/child/power_monitor_broadcast_source.h" |
#include "content/child/quota_dispatcher.h" |
#include "content/child/quota_message_filter.h" |
#include "content/child/resource_dispatcher.h" |
@@ -155,6 +156,15 @@ void ChildThread::Init() { |
channel_->AddFilter(resource_message_filter_.get()); |
channel_->AddFilter(quota_message_filter_.get()); |
+ scoped_ptr<PowerMonitorBroadcastSource> power_monitor_source( |
+ new PowerMonitorBroadcastSource(message_loop_->message_loop_proxy())); |
jam
2013/07/31 17:27:17
nit: no need to pass message_loop_ here, PowerMoni
|
+ channel_->AddFilter(power_monitor_source->GetMessageFilter()); |
+ |
+ power_monitor_.reset(new base::PowerMonitor( |
+ power_monitor_source.PassAs<base::PowerMonitorSource>())); |
+ |
+ hi_res_timer_manager_.reset(new base::HighResolutionTimerManager); |
+ |
#if defined(OS_POSIX) |
// Check that --process-type is specified so we don't do this in unit tests |
// and single-process mode. |