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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 815983002: Topsites become keyedService based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extra inclusion from testing_profile.h 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
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/search/instant_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index a99e29a14e2fb9f5d9c64a653b8c017abcd60898..8b4ce42be8a12e0e6ba06bbc3289d6a4120bf9b0 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -38,7 +38,6 @@
#include "chrome/browser/download/chrome_download_manager_delegate.h"
#include "chrome/browser/download/download_service.h"
#include "chrome/browser/download/download_service_factory.h"
-#include "chrome/browser/history/top_sites.h"
#include "chrome/browser/net/net_pref_observer.h"
#include "chrome/browser/net/predictor.h"
#include "chrome/browser/net/pref_proxy_config_tracker.h"
@@ -744,9 +743,6 @@ ProfileImpl::~ProfileImpl() {
BrowserContextDependencyManager::GetInstance()->DestroyBrowserContextServices(
this);
- if (top_sites_.get())
- top_sites_->Shutdown();
-
if (pref_proxy_config_tracker_)
pref_proxy_config_tracker_->DetachFromPrefService();
@@ -1089,18 +1085,6 @@ Time ProfileImpl::GetStartTime() const {
return start_time_;
}
-history::TopSites* ProfileImpl::GetTopSites() {
- if (!top_sites_.get()) {
- top_sites_ = history::TopSites::Create(
- this, GetPath().Append(chrome::kTopSitesFilename));
- }
- return top_sites_.get();
-}
-
-history::TopSites* ProfileImpl::GetTopSitesWithoutCreating() {
- return top_sites_.get();
-}
-
#if defined(ENABLE_SESSION_SERVICE)
void ProfileImpl::StopCreateSessionServiceTimer() {
create_session_service_timer_.Stop();
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/search/instant_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698