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

Unified Diff: chrome/browser/history/top_sites_impl_unittest.cc

Issue 815983002: Topsites become keyedService based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: For trybot Created 5 years, 11 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
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 fa8340a1f7e5aca77feb35b0bd0c596ed5eda5bf..49e3a1c48cf1cac5199c30b62a3f2bca09e319ec 100644
--- a/chrome/browser/history/top_sites_impl_unittest.cc
+++ b/chrome/browser/history/top_sites_impl_unittest.cc
@@ -12,6 +12,7 @@
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/history/history_unittest_base.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"
@@ -236,7 +237,8 @@ class TopSitesImplTest : public HistoryUnitTestBase {
}
TopSitesImpl* top_sites() {
- return static_cast<TopSitesImpl*>(profile_->GetTopSites());
+ return static_cast<TopSitesImpl*>(
+ TopSitesFactory::GetForProfile(profile_).get());
sdefresne 2015/01/21 17:57:23 This line won't compile, it need to be: return st
}
TestingProfile* profile() {return profile_.get();}
HistoryService* history_service() {
@@ -371,7 +373,7 @@ class TopSitesImplTest : public HistoryUnitTestBase {
profile_->CreateTopSites();
top_sites_observer_.reset(
- new TestTopSitesObserver(profile_.get(), profile_->GetTopSites()));
+ new TestTopSitesObserver(profile_.get(), TopSitesFactory::GetForProfile(profile_));
sdefresne 2015/01/21 17:57:23 This line is incorrectly formatted, it should have
}
private:

Powered by Google App Engine
This is Rietveld 408576698