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

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
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"
@@ -66,8 +67,8 @@
private:
void ScheduleUserCallback(int result) {
MessageLoop::current()->PostTask(FROM_HERE,
- method_factory_.NewRunnableMethod(
- &MockResponseReader::InvokeUserOldCompletionCallback, result));
+ base::Bind(&MockResponseReader::InvokeUserOldCompletionCallback,
+ weak_factory_.GetWeakPtr(), result));
James Hawkins 2011/10/27 03:30:32 Nit: For both function calls, line up parameters o
michaeln 2011/10/27 19:20:02 Done.
}
scoped_ptr<net::HttpResponseInfo> info_;

Powered by Google App Engine
This is Rietveld 408576698