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

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

Issue 2282053005: LowMemoryManagement: Deprecate unnecessary calls to Android. (Closed)
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
« no previous file with comments | « no previous file | components/arc/common/process.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/memory/tab_manager_delegate_chromeos.cc
diff --git a/chrome/browser/memory/tab_manager_delegate_chromeos.cc b/chrome/browser/memory/tab_manager_delegate_chromeos.cc
index de53aaa038855d40801d1baf85ba51e279035b61..e526293d355ece849a61537433e686664b740b3a 100644
--- a/chrome/browser/memory/tab_manager_delegate_chromeos.cc
+++ b/chrome/browser/memory/tab_manager_delegate_chromeos.cc
@@ -365,26 +365,6 @@ void TabManagerDelegate::OnInstanceReady() {
arc_process_instance_version_ = arc_bridge_service->process()->version();
DCHECK(arc_process_instance_);
-
- if (!IsArcMemoryManagementEnabled())
- return;
-
- if (arc_process_instance_version_ < 2) {
- VLOG(1) << "ProcessInstance version < 2 does not "
- "support DisableBuiltinOomAdjustment() yet.";
- return;
- }
- // Stop Android system-wide oom_adj adjustment since this class will
- // take over oom_score_adj settings.
- arc_process_instance_->DisableBuiltinOomAdjustment();
-
- if (arc_process_instance_version_ < 3) {
- VLOG(1) << "arc::ProcessInstance version < 3 does not "
- "support DisableLowMemoryKiller() yet.";
- return;
- }
- VLOG(2) << "Disable LowMemoryKiller";
- arc_process_instance_->DisableLowMemoryKiller();
}
void TabManagerDelegate::OnInstanceClosed() {
« no previous file with comments | « no previous file | components/arc/common/process.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698