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

Unified Diff: chrome/browser/thumbnails/thumbnail_service_factory.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
Index: chrome/browser/thumbnails/thumbnail_service_factory.cc
diff --git a/chrome/browser/thumbnails/thumbnail_service_factory.cc b/chrome/browser/thumbnails/thumbnail_service_factory.cc
index 70a055d3aad301587db947002500d121cbdf87a9..1daa9bc163293bf8d1c7612d2b9a4063f4005a9c 100644
--- a/chrome/browser/thumbnails/thumbnail_service_factory.cc
+++ b/chrome/browser/thumbnails/thumbnail_service_factory.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/thumbnails/thumbnail_service_factory.h"
#include "base/logging.h"
+#include "chrome/browser/history/top_sites_factory.h"
#include "chrome/browser/thumbnails/thumbnail_service.h"
#include "chrome/browser/thumbnails/thumbnail_service_impl.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
@@ -16,6 +17,7 @@ ThumbnailServiceFactory::ThumbnailServiceFactory()
: RefcountedBrowserContextKeyedServiceFactory(
"ThumbnailService",
BrowserContextDependencyManager::GetInstance()) {
+ DependsOn(TopSitesFactory::GetInstance());
}
ThumbnailServiceFactory::~ThumbnailServiceFactory() {
« no previous file with comments | « chrome/browser/thumbnails/thumbnail_list_source.cc ('k') | chrome/browser/thumbnails/thumbnail_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698