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

Unified Diff: chrome/browser/oom_priority_manager.cc

Issue 8566033: base::Bind fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed review issues Created 9 years, 1 month 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 | « chrome/browser/omnibox_search_hint.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/oom_priority_manager.cc
diff --git a/chrome/browser/oom_priority_manager.cc b/chrome/browser/oom_priority_manager.cc
index df8da3ab8b4fadfa4aec90fd5da6df28c4977b5e..d684de8c837eb8e11ea6152570570672a3a65674 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));
}
void OomPriorityManager::Observe(int type,
@@ -251,9 +252,8 @@ 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));
}
OomPriorityManager::TabStatsList OomPriorityManager::GetTabStatsOnUIThread() {
« no previous file with comments | « chrome/browser/omnibox_search_hint.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698