| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index 48e78ea8a92c668dd6211a47ed568f96ede7503c..1a4203d66f3f40fec6f5246670730995580ec98f 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -118,6 +118,7 @@
|
| #include "content/public/browser/notification_registrar.h"
|
| #include "content/public/browser/notification_service.h"
|
| #include "content/public/browser/notification_types.h"
|
| +#include "content/public/browser/power_usage_monitor.h"
|
| #include "content/public/browser/site_instance.h"
|
| #include "content/public/common/content_client.h"
|
| #include "content/public/common/content_switches.h"
|
| @@ -1576,6 +1577,11 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
|
| }
|
| browser_creator_.reset();
|
|
|
| +#if !defined(OS_LINUX) || defined(OS_CHROMEOS) // http://crbug.com/426393
|
| + if (g_browser_process->metrics_service()->reporting_active())
|
| + content::StartPowerUsageMonitor();
|
| +#endif
|
| +
|
| process_power_collector_.reset(new ProcessPowerCollector);
|
| process_power_collector_->Initialize();
|
| #endif // !defined(OS_ANDROID)
|
|
|