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

Unified Diff: chrome/browser/thumbnails/thumbnail_service_unittest.cc

Issue 815983002: Topsites become keyedService based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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/thumbnails/thumbnail_service_unittest.cc
diff --git a/chrome/browser/thumbnails/thumbnail_service_unittest.cc b/chrome/browser/thumbnails/thumbnail_service_unittest.cc
index 32f564c37a3a8b9050ace37b824873a55f2f528f..2b02b6d8ca81480c958bb92d6861bc0e96f43fef 100644
--- a/chrome/browser/thumbnails/thumbnail_service_unittest.cc
+++ b/chrome/browser/thumbnails/thumbnail_service_unittest.cc
@@ -16,9 +16,7 @@ typedef testing::Test ThumbnailServiceTest;
class MockTopSites : public history::TopSitesImpl {
public:
explicit MockTopSites(Profile* profile)
- : history::TopSitesImpl(profile),
- capacity_(1) {
- }
+ : history::TopSitesImpl(profile), capacity_(1) {}
// history::TopSitesImpl overrides.
bool IsNonForcedFull() override { return known_url_map_.size() >= capacity_; }
@@ -57,7 +55,7 @@ class MockProfile : public TestingProfile {
MockProfile() : mock_top_sites_(new MockTopSites(this)) {
sdefresne 2014/12/29 09:48:14 Remove mock_top_sites_ property.
Jitu( very slow this week) 2014/12/30 10:09:03 Done.
}
- history::TopSites* GetTopSites() override { return mock_top_sites_.get(); }
+ history::TopSites* GetTopSites() { return mock_top_sites_.get(); }
sdefresne 2014/12/29 09:48:14 Remove this method. Instead use TopSitesServiceFac
Jitu( very slow this week) 2014/12/30 10:09:03 Done.
void AddKnownURL(const GURL& url, const ThumbnailScore& score) {
mock_top_sites_->AddKnownURL(url, score);

Powered by Google App Engine
This is Rietveld 408576698