| Index: content/child/child_thread.cc
|
| diff --git a/content/child/child_thread.cc b/content/child/child_thread.cc
|
| index d41c5aeeddf12c9a851d9daee69ef54a1c0d53bd..edd4bf8c91cf3896edeff468983696512d457e54 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()));
|
| + channel_->AddFilter(power_monitor_source->MessageFilter());
|
| +
|
| + 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.
|
|
|