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

Unified Diff: chrome/browser/chromeos/memory/oom_priority_manager.cc

Issue 1124163003: Rename OS-specific MemoryPressureMonitor implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chromeos_switches. Created 5 years, 7 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/memory/oom_priority_manager.cc
diff --git a/chrome/browser/chromeos/memory/oom_priority_manager.cc b/chrome/browser/chromeos/memory/oom_priority_manager.cc
index 38e2dafe2a4968774e77588de12890ed2601ac4d..a934e115ec5ddf1ff5254f4418a2c2a2b3f5ef45 100644
--- a/chrome/browser/chromeos/memory/oom_priority_manager.cc
+++ b/chrome/browser/chromeos/memory/oom_priority_manager.cc
@@ -512,8 +512,8 @@ void OomPriorityManager::Observe(int type,
// driven MemoryPressureMonitor will continue to produce timed events
// on top. So the longer the cleanup phase takes, the more tabs will
// get discarded in parallel.
- base::MemoryPressureMonitorChromeOS* monitor =
- static_cast<base::MemoryPressureMonitorChromeOS*>(
+ base::chromeos::MemoryPressureMonitor* monitor =
grt (UTC plus 2) 2015/05/14 14:07:40 since you're editing the world, what do you think
chrisha 2015/05/14 15:27:17 base::MemoryPressureMonitor::Get returns a pointer
grt (UTC plus 2) 2015/05/14 15:30:26 I was suggesting adding a public static Get() meth
chrisha 2015/05/14 19:53:15 Well you know, my skull is pretty thick :) Done.
+ static_cast<base::chromeos::MemoryPressureMonitor*>(
base::MemoryPressureMonitor::Get());
if (monitor)
monitor->ScheduleEarlyCheck();

Powered by Google App Engine
This is Rietveld 408576698