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

Unified Diff: content/browser/download/download_request_handle.cc

Issue 8417010: Replace NewRunnableFunction with Callback in DownloadRequestHandle. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 2 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_request_handle.cc
===================================================================
--- content/browser/download/download_request_handle.cc (revision 107442)
+++ content/browser/download/download_request_handle.cc (working copy)
@@ -4,6 +4,7 @@
#include "content/browser/download/download_request_handle.h"
+#include "base/bind.h"
#include "base/stringprintf.h"
#include "content/browser/browser_context.h"
#include "content/browser/browser_thread.h"
@@ -79,8 +80,8 @@
if (rdh_) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableFunction(&ResourceDispatcherHostPauseRequest,
- rdh_, child_id_, request_id_, true));
+ base::Bind(&ResourceDispatcherHostPauseRequest,
+ rdh_, child_id_, request_id_, true));
}
}
@@ -90,8 +91,8 @@
if (rdh_) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableFunction(&ResourceDispatcherHostPauseRequest,
- rdh_, child_id_, request_id_, false));
+ base::Bind(&ResourceDispatcherHostPauseRequest,
+ rdh_, child_id_, request_id_, false));
}
}
@@ -101,8 +102,8 @@
if (rdh_) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableFunction(&ResourceDispatcherHostCancelRequest,
- rdh_, child_id_, request_id_));
+ base::Bind(&ResourceDispatcherHostCancelRequest,
+ rdh_, child_id_, request_id_));
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698