summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/history_querying_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/history/history_querying_unittest.cc')
-rw-r--r--chrome/browser/history/history_querying_unittest.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/history/history_querying_unittest.cc b/chrome/browser/history/history_querying_unittest.cc
index 609f78a..7c11dc4 100644
--- a/chrome/browser/history/history_querying_unittest.cc
+++ b/chrome/browser/history/history_querying_unittest.cc
@@ -3,7 +3,8 @@
// found in the LICENSE file.
#include "base/basictypes.h"
-#include "base/callback.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/path_service.h"
@@ -76,8 +77,10 @@ class HistoryQueryTest : public testing::Test {
void QueryHistory(const std::string& text_query,
const QueryOptions& options,
QueryResults* results) {
- history_->QueryHistory(UTF8ToUTF16(text_query), options, &consumer_,
- NewCallback(this, &HistoryQueryTest::QueryHistoryComplete));
+ history_->QueryHistory(
+ UTF8ToUTF16(text_query), options, &consumer_,
+ base::Bind(&HistoryQueryTest::QueryHistoryComplete,
+ base::Unretained(this)));
MessageLoop::current()->Run(); // Will go until ...Complete calls Quit.
results->Swap(&last_query_results_);
}