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

Unified Diff: content/browser/debugger/worker_devtools_manager.cc

Issue 8508004: Switch content/browser/debugger to base::Bind (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 | « content/browser/debugger/devtools_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/debugger/worker_devtools_manager.cc
diff --git a/content/browser/debugger/worker_devtools_manager.cc b/content/browser/debugger/worker_devtools_manager.cc
index beb6a89c330c588e2436a61952708a944e2907a0..7f70981ea8dec83be16f84792ce1a2996e8cee3e 100644
--- a/content/browser/debugger/worker_devtools_manager.cc
+++ b/content/browser/debugger/worker_devtools_manager.cc
@@ -7,7 +7,7 @@
#include <list>
#include <map>
-#include "base/tuple.h"
+#include "base/bind.h"
#include "content/browser/debugger/devtools_agent_host.h"
#include "content/browser/debugger/devtools_manager.h"
#include "content/browser/debugger/worker_devtools_message_filter.h"
@@ -95,7 +95,7 @@ class WorkerDevToolsManager::WorkerDevToolsAgentHost
BrowserThread::PostTask(
BrowserThread::IO,
FROM_HERE,
- NewRunnableFunction(
+ base::Bind(
&RegisterAgent,
worker_id.first,
worker_id.second));
@@ -130,7 +130,7 @@ class WorkerDevToolsManager::WorkerDevToolsAgentHost
virtual void SendMessageToAgent(IPC::Message* message) OVERRIDE {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableFunction(
+ base::Bind(
&WorkerDevToolsAgentHost::ForwardToWorkerDevToolsAgent,
worker_id_.first,
worker_id_.second,
@@ -199,7 +199,7 @@ class WorkerDevToolsManager::DetachedClientHosts {
static void RemovePendingWorkerData(WorkerId id) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableFunction(RemoveInspectedWorkerDataOnIOThread, id));
+ base::Bind(RemoveInspectedWorkerDataOnIOThread, id));
}
static void RemoveInspectedWorkerDataOnIOThread(WorkerId id) {
@@ -297,9 +297,7 @@ void WorkerDevToolsManager::WorkerDestroyed(
inspected_workers_.erase(it);
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableFunction(
- DetachedClientHosts::WorkerDestroyed,
- worker_id));
+ base::Bind(DetachedClientHosts::WorkerDestroyed, worker_id));
}
void WorkerDevToolsManager::WorkerContextStarted(WorkerProcessHost* process,
@@ -311,7 +309,7 @@ void WorkerDevToolsManager::WorkerContextStarted(WorkerProcessHost* process,
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableFunction(
+ base::Bind(
DetachedClientHosts::WorkerReloaded,
it->second,
new_worker_id));
@@ -389,7 +387,7 @@ void WorkerDevToolsManager::ForwardToDevToolsClient(
}
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableFunction(
+ base::Bind(
ForwardToDevToolsClientOnUIThread,
worker_process_id,
worker_route_id,
@@ -401,7 +399,7 @@ void WorkerDevToolsManager::SaveAgentRuntimeState(int worker_process_id,
const std::string& state) {
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableFunction(
+ base::Bind(
SaveAgentRuntimeStateOnUIThread,
worker_process_id,
worker_route_id,
@@ -454,7 +452,7 @@ void WorkerDevToolsManager::NotifyWorkerDestroyedOnIOThread(
int worker_route_id) {
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableFunction(
+ base::Bind(
&WorkerDevToolsManager::NotifyWorkerDestroyedOnUIThread,
worker_process_id,
worker_route_id));
« no previous file with comments | « content/browser/debugger/devtools_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698