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

Unified Diff: chrome/browser/oom_priority_manager.cc

Issue 8677024: Revert 111425 - 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
« 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
===================================================================
--- chrome/browser/oom_priority_manager.cc (revision 111431)
+++ chrome/browser/oom_priority_manager.cc (working copy)
@@ -7,7 +7,6 @@
#include <algorithm>
#include <vector>
-#include "base/bind.h"
#include "base/process.h"
#include "base/process_util.h"
#include "base/string16.h"
@@ -182,8 +181,8 @@
void OomPriorityManager::OnFocusTabScoreAdjustmentTimeout() {
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
- base::Bind(
- &OomPriorityManager::AdjustFocusedTabScoreOnFileThread, this));
+ NewRunnableMethod(
+ this, &OomPriorityManager::AdjustFocusedTabScoreOnFileThread));
}
void OomPriorityManager::Observe(int type,
@@ -252,8 +251,9 @@
TabStatsList stats_list = GetTabStatsOnUIThread();
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
- base::Bind(&OomPriorityManager::AdjustOomPrioritiesOnFileThread,
- this, stats_list));
+ NewRunnableMethod(this,
+ &OomPriorityManager::AdjustOomPrioritiesOnFileThread,
+ 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