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

Unified Diff: webkit/appcache/appcache_service.cc

Issue 8399019: base::Bind usage (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 | « webkit/appcache/appcache_response.cc ('k') | webkit/appcache/appcache_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_service.cc
===================================================================
--- webkit/appcache/appcache_service.cc (revision 107404)
+++ webkit/appcache/appcache_service.cc (working copy)
@@ -4,6 +4,7 @@
#include "webkit/appcache/appcache_service.h"
+#include "base/bind.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "base/stl_util.h"
@@ -49,13 +50,13 @@
if (callback_) {
// Defer to guarentee async completion.
MessageLoop::current()->PostTask(
- FROM_HERE,
- NewRunnableFunction(&DeferredCallCallback, callback_, rv));
+ FROM_HERE, base::Bind(&DeferredCallCallback, callback_, rv));
}
callback_ = NULL;
}
- static void DeferredCallCallback(net::OldCompletionCallback* callback, int rv) {
+ static void DeferredCallCallback(net::OldCompletionCallback* callback,
+ int rv) {
callback->Run(rv);
}
« no previous file with comments | « webkit/appcache/appcache_response.cc ('k') | webkit/appcache/appcache_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698