Move GetAvailableMemoryKB logic out of CrOS SystemMemoryPressureEvaluator
GetAvailableMemoryKB will be used by the memory pressure D-Bus service provider, and SystemMemoryPressureEvaluator will call the memory pressure D-Bus API. Move GetAvailableMemoryKB to avoid the circular dependency between SystemMemoryPressureEvaluator and the memory pressure D-Bus service provider. BUG=b:149833548 TEST=run chromeos_unittests Change-Id: Ieab7763fe9b9291e2503463dbdce19cc92838c9a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2381241 Commit-Queue: Kuo-Hsin Yang <vovoy@chromium.org> Reviewed-by:Brian Geffon <bgeffon@chromium.org> Cr-Commit-Position: refs/heads/master@{#802690}
Showing
Please register or sign in to comment