Chromium Code Reviews| Index: chrome/browser/chrome_browser_main.cc |
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
| index b509e20670fb4fb623f76565cb0a90dbb08056be..2b49029eaee5de315a9de11f99783cffa6a17370 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" |
| @@ -1553,6 +1554,9 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() { |
| browser_creator_.reset(); |
| #endif // !defined(OS_ANDROID) |
| + if (g_browser_process->metrics_service()->reporting_active()) |
| + content::StartPowerUsageMonitor(); |
|
Daniel Erat
2014/10/21 16:01:20
is this the proper way to check whether metrics ar
jeremy
2014/10/23 14:32:45
Avi: Do you know whether we need to null check met
|
| + |
| #if !defined(OS_ANDROID) |
| process_power_collector_.reset(new ProcessPowerCollector); |
| process_power_collector_->Initialize(); |