| Index: chrome/browser/history/chrome_history_client.h
|
| diff --git a/chrome/browser/history/chrome_history_client.h b/chrome/browser/history/chrome_history_client.h
|
| index fbaffc0e9cbb8ff747137dd451f753cab5dc1cac..7d138278e738a342b48a36f103b67db56e77c58b 100644
|
| --- a/chrome/browser/history/chrome_history_client.h
|
| +++ b/chrome/browser/history/chrome_history_client.h
|
| @@ -7,24 +7,16 @@
|
|
|
| #include "base/macros.h"
|
| #include "components/history/core/browser/history_client.h"
|
| -#include "components/history/core/browser/top_sites_observer.h"
|
|
|
| class BookmarkModel;
|
| class HistoryService;
|
| class Profile;
|
|
|
| -namespace history {
|
| -class TopSites;
|
| -}
|
| -
|
| // This class implements history::HistoryClient to abstract operations that
|
| // depend on Chrome environment.
|
| -class ChromeHistoryClient : public history::HistoryClient,
|
| - public history::TopSitesObserver {
|
| +class ChromeHistoryClient : public history::HistoryClient {
|
| public:
|
| - explicit ChromeHistoryClient(BookmarkModel* bookmark_model,
|
| - Profile* profile,
|
| - history::TopSites* top_sites);
|
| + explicit ChromeHistoryClient(BookmarkModel* bookmark_model);
|
| ~ChromeHistoryClient() override;
|
|
|
| // history::HistoryClient:
|
| @@ -37,25 +29,9 @@ class ChromeHistoryClient : public history::HistoryClient,
|
| // KeyedService:
|
| void Shutdown() override;
|
|
|
| - // TopSitesObserver:
|
| - void TopSitesLoaded(history::TopSites* top_sites) override;
|
| - void TopSitesChanged(history::TopSites* top_sites) override;
|
| -
|
| private:
|
| // The BookmarkModel, this should outlive ChromeHistoryClient.
|
| BookmarkModel* bookmark_model_;
|
| - Profile* profile_;
|
| - // The TopSites object is owned by the Profile (see
|
| - // chrome/browser/profiles/profile_impl.h)
|
| - // and lazily constructed by the getter.
|
| - // ChromeHistoryClient is a KeyedService linked to the Profile lifetime by the
|
| - // ChromeHistoryClientFactory (which is a BrowserContextKeyedServiceFactory).
|
| - // Before the Profile is destroyed, all the KeyedService Shutdown methods are
|
| - // called, and the Profile is fully constructed before any of the KeyedService
|
| - // can be constructed. The TopSites does not use the HistoryService nor the
|
| - // HistoryClient during construction (it uses it later, but supports getting
|
| - // an NULL pointer).
|
| - history::TopSites* top_sites_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ChromeHistoryClient);
|
| };
|
|
|