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

Unified Diff: chrome/browser/browsing_data_file_system_helper_unittest.cc

Issue 8370026: base::Bind: Convert BrowsingDataFileSystemHelper::StartFetching. (Closed) Base URL: svn://svn.chromium.org/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 | « chrome/browser/browsing_data_file_system_helper.cc ('k') | chrome/browser/cookies_tree_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data_file_system_helper_unittest.cc
diff --git a/chrome/browser/browsing_data_file_system_helper_unittest.cc b/chrome/browser/browsing_data_file_system_helper_unittest.cc
index b28f5529d2165aea23e99724928bad02576cfd0f..30c3be653d248fcc9523cca3aa2f296fd5ecaae1 100644
--- a/chrome/browser/browsing_data_file_system_helper_unittest.cc
+++ b/chrome/browser/browsing_data_file_system_helper_unittest.cc
@@ -111,16 +111,18 @@ class BrowsingDataFileSystemHelperTest : public testing::Test {
// Calls StartFetching() on the test's BrowsingDataFileSystemHelper
// object, then blocks until the callback is executed.
void FetchFileSystems() {
- helper_->StartFetching(NewCallback(this,
- &BrowsingDataFileSystemHelperTest::CallbackStartFetching));
+ helper_->StartFetching(
+ base::Bind(&BrowsingDataFileSystemHelperTest::CallbackStartFetching,
+ base::Unretained(this)));
BlockUntilNotified();
}
// Calls StartFetching() on the test's CannedBrowsingDataFileSystemHelper
// object, then blocks until the callback is executed.
void FetchCannedFileSystems() {
- canned_helper_->StartFetching(NewCallback(this,
- &BrowsingDataFileSystemHelperTest::CallbackStartFetching));
+ canned_helper_->StartFetching(
+ base::Bind(&BrowsingDataFileSystemHelperTest::CallbackStartFetching,
+ base::Unretained(this)));
BlockUntilNotified();
}
« no previous file with comments | « chrome/browser/browsing_data_file_system_helper.cc ('k') | chrome/browser/cookies_tree_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698