summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/top_sites_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/history/top_sites_unittest.cc')
-rw-r--r--chrome/browser/history/top_sites_unittest.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/history/top_sites_unittest.cc b/chrome/browser/history/top_sites_unittest.cc
index 5d6ef8f..df81625 100644
--- a/chrome/browser/history/top_sites_unittest.cc
+++ b/chrome/browser/history/top_sites_unittest.cc
@@ -194,7 +194,8 @@ class TopSitesTest : public HistoryUnitTestBase {
void WaitForTopSites() {
top_sites()->backend_->DoEmptyRequest(
&consumer_,
- NewCallback(this, &TopSitesTest::QuitCallback));
+ base::Bind(&TopSitesTest::QuitCallback,
+ base::Unretained(this)));
MessageLoop::current()->Run();
}
@@ -895,8 +896,8 @@ TEST_F(TopSitesTest, PinnedURLsDeleted) {
history_service()->ExpireHistoryBetween(
std::set<GURL>(), base::Time(), base::Time(),
- consumer(), NewCallback(static_cast<TopSitesTest*>(this),
- &TopSitesTest::EmptyCallback)),
+ consumer(), base::Bind(&TopSitesTest::EmptyCallback,
+ base::Unretained(this))),
WaitForHistory();
{