| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index 14990cffcca8a13265c10c075883454259e91ce4..bcdafb8604f0294133da6c9141b436074109589d 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -116,6 +116,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"
|
| @@ -1558,6 +1559,9 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
|
| browser_creator_.reset();
|
| #endif // !defined(OS_ANDROID)
|
|
|
| + if (g_browser_process->metrics_service()->reporting_active())
|
| + content::StartPowerUsageMonitor();
|
| +
|
| #if !defined(OS_ANDROID)
|
| process_power_collector_.reset(new ProcessPowerCollector);
|
| process_power_collector_->Initialize();
|
|
|