diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-24 05:55:22 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-24 05:55:22 +0000 |
commit | 51d0215ad07fa51735ea2b15c251893a7000fc89 (patch) | |
tree | 147f319e9af5e9a1fc970c610509e355318c0b2e /chrome/browser/oom_priority_manager.cc | |
parent | 55f59335f5983f427d3cad623034a6803a38c1ee (diff) | |
download | chromium_src-51d0215ad07fa51735ea2b15c251893a7000fc89.zip chromium_src-51d0215ad07fa51735ea2b15c251893a7000fc89.tar.gz chromium_src-51d0215ad07fa51735ea2b15c251893a7000fc89.tar.bz2 |
base::Bind: Convert NewRunnableMethod in chrome/browser.
BUG=none
TEST=none
R=groby
Review URL: http://codereview.chromium.org/8960010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115749 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/oom_priority_manager.cc')
-rw-r--r-- | chrome/browser/oom_priority_manager.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/oom_priority_manager.cc b/chrome/browser/oom_priority_manager.cc index d736877..abbffaf 100644 --- a/chrome/browser/oom_priority_manager.cc +++ b/chrome/browser/oom_priority_manager.cc @@ -7,6 +7,8 @@ #include <algorithm> #include <vector> +#include "base/bind.h" +#include "base/bind_helpers.h" #include "base/process.h" #include "base/process_util.h" #include "base/string16.h" @@ -181,8 +183,8 @@ void OomPriorityManager::AdjustFocusedTabScoreOnFileThread() { void OomPriorityManager::OnFocusTabScoreAdjustmentTimeout() { BrowserThread::PostTask( BrowserThread::FILE, FROM_HERE, - NewRunnableMethod( - this, &OomPriorityManager::AdjustFocusedTabScoreOnFileThread)); + base::Bind(&OomPriorityManager::AdjustFocusedTabScoreOnFileThread, + base::Unretained(this))); } void OomPriorityManager::Observe(int type, @@ -251,9 +253,8 @@ void OomPriorityManager::AdjustOomPriorities() { TabStatsList stats_list = GetTabStatsOnUIThread(); BrowserThread::PostTask( BrowserThread::FILE, FROM_HERE, - NewRunnableMethod(this, - &OomPriorityManager::AdjustOomPrioritiesOnFileThread, - stats_list)); + base::Bind(&OomPriorityManager::AdjustOomPrioritiesOnFileThread, + base::Unretained(this), stats_list)); } OomPriorityManager::TabStatsList OomPriorityManager::GetTabStatsOnUIThread() { |