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

Unified Diff: webkit/appcache/appcache_test_helper.cc

Issue 8776024: base::Bind: Convert AppCacheService::GetAllAppCacheInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 9 years, 1 month 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_test_helper.h ('k') | webkit/appcache/view_appcache_internals_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_test_helper.cc
diff --git a/webkit/appcache/appcache_test_helper.cc b/webkit/appcache/appcache_test_helper.cc
index a9ca7e64a1476171f4b1d2c3219a8f253235277a..c156ec23564972a6415750340d2088d90c49ea50 100644
--- a/webkit/appcache/appcache_test_helper.cc
+++ b/webkit/appcache/appcache_test_helper.cc
@@ -4,6 +4,8 @@
#include "webkit/appcache/appcache_test_helper.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/message_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/appcache/appcache.h"
@@ -17,8 +19,6 @@ AppCacheTestHelper::AppCacheTestHelper()
: group_id_(0),
appcache_id_(0),
response_id_(0),
- ALLOW_THIS_IN_INITIALIZER_LIST(appcache_got_info_callback_(
- this, &AppCacheTestHelper::OnGotAppCacheInfo)),
origins_(NULL) {}
AppCacheTestHelper::~AppCacheTestHelper() {}
@@ -57,7 +57,9 @@ void AppCacheTestHelper::GetOriginsWithCaches(AppCacheService* appcache_service,
appcache_info_ = new AppCacheInfoCollection;
origins_ = origins;
appcache_service->GetAllAppCacheInfo(
- appcache_info_, &appcache_got_info_callback_);
+ appcache_info_, base::Bind(&AppCacheTestHelper::OnGotAppCacheInfo,
+ base::Unretained(this)));
+
// OnGotAppCacheInfo will quit the message loop.
MessageLoop::current()->Run();
}
« no previous file with comments | « webkit/appcache/appcache_test_helper.h ('k') | webkit/appcache/view_appcache_internals_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698