DescriptionTabManager: Set OOM scores via a new debugd interface on ChromeOS.
Setting OOM scores generally requires root permission. In the past it's done
1. For Chrome processes: via a SUID binary chrome-sandbox.
2. For Andorid processes: Send scores to Android via IPC. Android
handles the rest.
Now a new method is added to debugd dbus interface on ChromeOS to
handle OOM score settings.
https://chromium-review.googlesource.com/#/c/366154/
So we can set OOM score settings in the unified way on ChromeOS.
BUG=b:30193036
TEST=minnie
Committed: https://crrev.com/2af9aaceb40213973d0c989de413d0505afefbce
Cr-Commit-Position: refs/heads/master@{#414693}
Patch Set 1 #
Total comments: 16
Patch Set 2 : stop posting to file thread. remove lock. #Patch Set 3 #
Total comments: 10
Patch Set 4 : review comments #Patch Set 5 : minor change: pass score as int32_t to match the receiver side #Patch Set 6 : fix unittest #
Messages
Total messages: 28 (13 generated)
|