Chromium Code Reviews| Index: chrome/browser/oom_priority_manager.cc |
| diff --git a/chrome/browser/oom_priority_manager.cc b/chrome/browser/oom_priority_manager.cc |
| index 1eb6de300e773398b2c02eb63d455a6de4e8fa2a..e696ebabf07237c76c45b9639c41eba6f6db0291 100644 |
| --- a/chrome/browser/oom_priority_manager.cc |
| +++ b/chrome/browser/oom_priority_manager.cc |
| @@ -7,6 +7,7 @@ |
| #include <algorithm> |
| #include <vector> |
| +#include "base/bind.h" |
| #include "base/process.h" |
| #include "base/process_util.h" |
| #include "base/string16.h" |
| @@ -181,8 +182,8 @@ void OomPriorityManager::AdjustFocusedTabScoreOnFileThread() { |
| void OomPriorityManager::OnFocusTabScoreAdjustmentTimeout() { |
| BrowserThread::PostTask( |
| BrowserThread::FILE, FROM_HERE, |
| - NewRunnableMethod( |
| - this, &OomPriorityManager::AdjustFocusedTabScoreOnFileThread)); |
| + base::Bind( |
| + &OomPriorityManager::AdjustFocusedTabScoreOnFileThread, this)); |
|
James Hawkins
2011/11/19 03:31:12
Do you still need this wrapped?
groby-ooo-7-16
2011/11/21 22:50:14
What do you mean by wrapped?
On 2011/11/19 03:31:1
groby-ooo-7-16
2011/11/21 22:54:48
If you mean line-wrapped (sorry, only realized tha
|
| } |
| void OomPriorityManager::Observe(int type, |
| @@ -250,9 +251,9 @@ void OomPriorityManager::AdjustOomPriorities() { |
| TabStatsList stats_list = GetTabStatsOnUIThread(); |
| BrowserThread::PostTask( |
| BrowserThread::FILE, FROM_HERE, |
| - NewRunnableMethod(this, |
| - &OomPriorityManager::AdjustOomPrioritiesOnFileThread, |
| - stats_list)); |
| + base::Bind(&OomPriorityManager::AdjustOomPrioritiesOnFileThread, |
| + this, |
| + stats_list)); |
|
James Hawkins
2011/11/19 03:31:12
Save a line: put this on the line above.
groby-ooo-7-16
2011/11/21 22:54:48
Done.
|
| } |
| OomPriorityManager::TabStatsList OomPriorityManager::GetTabStatsOnUIThread() { |