summaryrefslogtreecommitdiffstats
path: root/webkit/glue/resource_fetcher_unittest.cc
diff options
context:
space:
mode:
authordcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-22 00:49:23 +0000
committerdcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-22 00:49:23 +0000
commit92d86a2cbb32d57b7d875c198783d961bed62dd0 (patch)
tree43fdb4216080f1a4b6892077a868b4513b624832 /webkit/glue/resource_fetcher_unittest.cc
parentda2c2744e7103580326855e6b9cad971d8398b54 (diff)
downloadchromium_src-92d86a2cbb32d57b7d875c198783d961bed62dd0.zip
chromium_src-92d86a2cbb32d57b7d875c198783d961bed62dd0.tar.gz
chromium_src-92d86a2cbb32d57b7d875c198783d961bed62dd0.tar.bz2
base::Bind() conversion for webkit.
BUG=none TEST=trybots Review URL: http://codereview.chromium.org/8550010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111060 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/resource_fetcher_unittest.cc')
-rw-r--r--webkit/glue/resource_fetcher_unittest.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/webkit/glue/resource_fetcher_unittest.cc b/webkit/glue/resource_fetcher_unittest.cc
index be878f3..6955fd1 100644
--- a/webkit/glue/resource_fetcher_unittest.cc
+++ b/webkit/glue/resource_fetcher_unittest.cc
@@ -4,7 +4,8 @@
#include "webkit/glue/resource_fetcher.h"
-#include "base/callback.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/message_loop.h"
#include "base/timer.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
@@ -42,8 +43,9 @@ class FetcherDelegate {
virtual ~FetcherDelegate() {}
- ResourceFetcher::Callback* NewCallback() {
- return ::NewCallback(this, &FetcherDelegate::OnURLFetchComplete);
+ ResourceFetcher::Callback NewCallback() {
+ return base::Bind(&FetcherDelegate::OnURLFetchComplete,
+ base::Unretained(this));
}
virtual void OnURLFetchComplete(const WebURLResponse& response,