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

Unified Diff: chrome/browser/memory/tab_manager_delegate_chromeos.h

Issue 2247433002: TabManager: Set OOM scores via a new debugd interface on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/memory/tab_manager_delegate_chromeos.h
diff --git a/chrome/browser/memory/tab_manager_delegate_chromeos.h b/chrome/browser/memory/tab_manager_delegate_chromeos.h
index 0b4fa54f960229b554ba18c5580b701637dcd95c..6a3858d4b61330052eb39288f8d66365aba16baa 100644
--- a/chrome/browser/memory/tab_manager_delegate_chromeos.h
+++ b/chrome/browser/memory/tab_manager_delegate_chromeos.h
@@ -90,9 +90,9 @@ class TabManagerDelegate
protected:
// Sets oom_score_adj for a list of tabs.
- // This is a delegator to to SetOomScoreAdjForTabsOnFileThread(),
+ // This is a delegator to to SetOomScoreAdjOnFileThread(),
// also as a seam for unit test.
- virtual void SetOomScoreAdjForTabs(
+ virtual void SetOomScoreAdj(
const std::vector<std::pair<base::ProcessHandle, int>>& entries);
// Kills an Arc process. Returns true if the kill request is successfully sent
@@ -153,11 +153,8 @@ class TabManagerDelegate
const TabStatsList& tab_list,
const std::vector<arc::ArcProcess>& arc_processes);
- // Sets oom_score_adj of an ARC app.
- void SetOomScoreAdjForApp(int nspid, int score);
-
// Sets oom_score_adj for a list of tabs on the file thread.
- void SetOomScoreAdjForTabsOnFileThread(
+ void SetOomScoreAdjOnFileThread(
const std::vector<std::pair<base::ProcessHandle, int>>& entries);
// Sets OOM score for processes in the range [|rbegin|, |rend|) to integers

Powered by Google App Engine
This is Rietveld 408576698