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

Unified Diff: webkit/appcache/appcache_service_unittest.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_service.cc ('k') | webkit/appcache/appcache_url_request_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_service_unittest.cc
===================================================================
--- webkit/appcache/appcache_service_unittest.cc (revision 107404)
+++ webkit/appcache/appcache_service_unittest.cc (working copy)
@@ -4,6 +4,7 @@
#include <string>
+#include "base/bind.h"
#include "base/message_loop.h"
#include "base/pickle.h"
#include "net/base/completion_callback.h"
@@ -65,9 +66,10 @@
private:
void ScheduleUserCallback(int result) {
- MessageLoop::current()->PostTask(FROM_HERE,
- method_factory_.NewRunnableMethod(
- &MockResponseReader::InvokeUserOldCompletionCallback, result));
+ MessageLoop::current()->PostTask(
+ FROM_HERE,
+ base::Bind(&MockResponseReader::InvokeUserOldCompletionCallback,
+ weak_factory_.GetWeakPtr(), result));
}
scoped_ptr<net::HttpResponseInfo> info_;
« no previous file with comments | « webkit/appcache/appcache_service.cc ('k') | webkit/appcache/appcache_url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698