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

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: 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
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() {
« chrome/browser/omnibox_search_hint.cc ('K') | « chrome/browser/omnibox_search_hint.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698