Index: chrome/browser/history/top_sites_impl_unittest.cc |
diff --git a/chrome/browser/history/top_sites_impl_unittest.cc b/chrome/browser/history/top_sites_impl_unittest.cc |
index b8f02f182d439fb66fcc98c142ff97326e5bc065..d24753b2132023ac02d23429c0c5f00126aafbe6 100644 |
--- a/chrome/browser/history/top_sites_impl_unittest.cc |
+++ b/chrome/browser/history/top_sites_impl_unittest.cc |
@@ -9,6 +9,7 @@ |
#include "base/task/cancelable_task_tracker.h" |
#include "chrome/browser/history/history_service_factory.h" |
#include "chrome/browser/history/top_sites.h" |
+#include "chrome/browser/history/top_sites_factory.h" |
#include "chrome/browser/history/top_sites_impl.h" |
#include "chrome/common/chrome_constants.h" |
#include "chrome/common/chrome_paths.h" |
@@ -194,9 +195,10 @@ class TopSitesImplTest : public HistoryUnitTestBase { |
} |
TopSitesImpl* top_sites() { |
- return static_cast<TopSitesImpl*>(profile_->GetTopSites()); |
+ return static_cast<TopSitesImpl*>( |
+ TopSitesFactory::GetForProfile(profile_.get()).get()); |
} |
- TestingProfile* profile() {return profile_.get();} |
+ TestingProfile* profile() { return profile_.get(); } |
HistoryService* history_service() { |
return HistoryServiceFactory::GetForProfile( |
profile_.get(), ServiceAccessType::EXPLICIT_ACCESS); |