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