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

Unified Diff: chrome/browser/favicon/favicon_service_factory.cc

Issue 56143002: Make FaviconService() use Porfile as parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test but break the DEPS Created 7 years, 1 month 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/favicon/favicon_service.cc ('k') | chrome/browser/history/android/sqlite_cursor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/favicon/favicon_service_factory.cc
diff --git a/chrome/browser/favicon/favicon_service_factory.cc b/chrome/browser/favicon/favicon_service_factory.cc
index fce9098ec13affd4d053ebbd5754cbb2936bf773..4a2ed7e75593eb7dae105277b0fe7b63e9e78966 100644
--- a/chrome/browser/favicon/favicon_service_factory.cc
+++ b/chrome/browser/favicon/favicon_service_factory.cc
@@ -46,9 +46,7 @@ FaviconServiceFactory::~FaviconServiceFactory() {}
BrowserContextKeyedService* FaviconServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
- HistoryService* history_service = HistoryServiceFactory::GetForProfile(
- static_cast<Profile*>(profile), Profile::EXPLICIT_ACCESS);
- return new FaviconService(history_service);
+ return new FaviconService(static_cast<Profile*>(profile));
}
bool FaviconServiceFactory::ServiceIsNULLWhileTesting() const {
« no previous file with comments | « chrome/browser/favicon/favicon_service.cc ('k') | chrome/browser/history/android/sqlite_cursor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698