Chromium Code Reviews| 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(); |