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

Unified Diff: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc

Issue 8393040: Replace NewRunnableFunction with Callback in ChromeResourceDispatcherHostDelegate. (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: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
===================================================================
--- chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (revision 106989)
+++ chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (working copy)
@@ -123,11 +123,11 @@
if (request_data.resource_type == ResourceType::PRERENDER) {
if (prerender::PrerenderManager::IsPrerenderingPossible()) {
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- NewRunnableFunction(AddPrerenderOnUI,
- child_id,
- route_id,
- request_data.url,
- referrer));
+ base::Bind(&AddPrerenderOnUI,
+ child_id,
+ route_id,
+ request_data.url,
+ referrer));
}
// Prerendering or not, this request should be aborted.
return false;
@@ -192,7 +192,7 @@
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableFunction(&NotifyDownloadInitiatedOnUI, child_id, route_id));
+ base::Bind(&NotifyDownloadInitiatedOnUI, child_id, route_id));
// If this isn't a new request, we've seen this before and added the safe
// browsing resource handler already so no need to add it again. This code
@@ -284,8 +284,7 @@
const GURL& url, int child_id, int route_id) {
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableFunction(
- &ExternalProtocolHandler::LaunchUrl, url, child_id, route_id));
+ base::Bind(&ExternalProtocolHandler::LaunchUrl, url, child_id, route_id));
}
#if defined(ENABLE_SAFE_BROWSING)
« 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