| 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..b4e6f748ccb93aa29f42fe13a6b64003e6ecae64 100644
|
| --- a/chrome/browser/thumbnails/thumbnail_service_unittest.cc
|
| +++ b/chrome/browser/thumbnails/thumbnail_service_unittest.cc
|
| @@ -5,7 +5,7 @@
|
| #include "chrome/browser/thumbnails/thumbnail_service_impl.h"
|
|
|
| #include "base/memory/ref_counted.h"
|
| -#include "chrome/browser/history/top_sites_impl.h"
|
| +#include "chrome/browser/history/top_sites_service.h"
|
| #include "chrome/test/base/testing_profile.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| @@ -13,12 +13,10 @@ typedef testing::Test ThumbnailServiceTest;
|
|
|
| // A mock version of TopSitesImpl, used for testing
|
| // ShouldAcquirePageThumbnail().
|
| -class MockTopSites : public history::TopSitesImpl {
|
| +class MockTopSites : public history::TopSitesService {
|
| public:
|
| explicit MockTopSites(Profile* profile)
|
| - : history::TopSitesImpl(profile),
|
| - capacity_(1) {
|
| - }
|
| + : history::TopSitesService(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)) {
|
| }
|
|
|
| - history::TopSites* GetTopSites() override { return mock_top_sites_.get(); }
|
| + history::TopSitesProvider* GetTopSites() { return mock_top_sites_.get(); }
|
|
|
| void AddKnownURL(const GURL& url, const ThumbnailScore& score) {
|
| mock_top_sites_->AddKnownURL(url, score);
|
|
|