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

Unified Diff: chrome/browser/browsing_data_database_helper_browsertest.cc

Issue 8370007: base::Bind: Convert BrowsingDatabaseHelper::StartFetching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. 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_database_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_database_helper_browsertest.cc
diff --git a/chrome/browser/browsing_data_database_helper_browsertest.cc b/chrome/browser/browsing_data_database_helper_browsertest.cc
index 36b3205d0a877deab2ac6a2798c5962ecf194391..cee5afa299183d777c505585b9950e444922b22e 100644
--- a/chrome/browser/browsing_data_database_helper_browsertest.cc
+++ b/chrome/browser/browsing_data_database_helper_browsertest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/file_util.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/browsing_data_database_helper.h"
@@ -79,7 +81,8 @@ IN_PROC_BROWSER_TEST_F(BrowsingDataDatabaseHelperTest, DISABLED_FetchData) {
new BrowsingDataDatabaseHelper(browser()->profile()));
StopTestOnCallback stop_test_on_callback(database_helper);
database_helper->StartFetching(
- NewCallback(&stop_test_on_callback, &StopTestOnCallback::Callback));
+ base::Bind(&StopTestOnCallback::Callback,
+ base::Unretained(&stop_test_on_callback)));
// Blocks until StopTestOnCallback::Callback is notified.
ui_test_utils::RunMessageLoop();
}
@@ -101,7 +104,8 @@ IN_PROC_BROWSER_TEST_F(BrowsingDataDatabaseHelperTest, CannedAddDatabase) {
TestCompletionCallback callback;
helper->StartFetching(
- NewCallback(&callback, &TestCompletionCallback::callback));
+ base::Bind(&TestCompletionCallback::callback,
+ base::Unretained(&callback)));
std::list<BrowsingDataDatabaseHelper::DatabaseInfo> result =
callback.result();
@@ -131,7 +135,8 @@ IN_PROC_BROWSER_TEST_F(BrowsingDataDatabaseHelperTest, CannedUnique) {
TestCompletionCallback callback;
helper->StartFetching(
- NewCallback(&callback, &TestCompletionCallback::callback));
+ base::Bind(&TestCompletionCallback::callback,
+ base::Unretained(&callback)));
std::list<BrowsingDataDatabaseHelper::DatabaseInfo> result =
callback.result();
« no previous file with comments | « chrome/browser/browsing_data_database_helper.cc ('k') | chrome/browser/cookies_tree_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698