Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5349)

Unified Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.cc

Issue 2363223002: Fix the Chrome OS ResourceReporter (Closed)
Patch Set: DI for the task manager to observe Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/chrome_browser_main_chromeos.cc
diff --git a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
index df7fec5e0b6bd917c8c9430bcf52b8be45e3dac7..86bbde15b8a5c80330fc2954eddc158fcf10383c 100644
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
@@ -83,6 +83,7 @@
#include "chrome/browser/net/chrome_network_delegate.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
+#include "chrome/browser/task_manager/task_manager_interface.h"
#include "chrome/browser/ui/ash/ash_util.h"
#include "chrome/browser/ui/ash/network_connect_delegate_chromeos.h"
#include "chrome/common/channel_info.h"
@@ -418,7 +419,8 @@ void ChromeBrowserMainPartsChromeos::PreMainMessageLoopRun() {
arc_service_launcher_.reset(new arc::ArcServiceLauncher());
arc_service_launcher_->Initialize();
- chromeos::ResourceReporter::GetInstance()->StartMonitoring();
+ chromeos::ResourceReporter::GetInstance()->StartMonitoring(
+ task_manager::TaskManagerInterface::GetTaskManager());
ChromeBrowserMainPartsLinux::PreMainMessageLoopRun();
}

Powered by Google App Engine
This is Rietveld 408576698