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

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

Issue 1092873002: [Icons NTP] Refactor large_icon_source to extract the logic shared between desktop and Android to f… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/favicon/favicon_service_factory.cc
diff --git a/chrome/browser/favicon/favicon_service_factory.cc b/chrome/browser/favicon/favicon_service_factory.cc
index cb0840cfac1699b16343e2fe33146ebf3b013b59..0dbf963487d94eec2f15ecb685030d76695fff4d 100644
--- a/chrome/browser/favicon/favicon_service_factory.cc
+++ b/chrome/browser/favicon/favicon_service_factory.cc
@@ -12,6 +12,7 @@
#include "components/favicon/core/favicon_service.h"
#include "components/history/core/browser/history_service.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
+#include "content/public/browser/browser_context.h"
// static
favicon::FaviconService* FaviconServiceFactory::GetForProfile(
@@ -33,6 +34,13 @@ favicon::FaviconService* FaviconServiceFactory::GetForProfile(
}
// static
+favicon::FaviconService* FaviconServiceFactory::GetForBrowserContext(
+ content::BrowserContext* context) {
+ return static_cast<favicon::FaviconService*>(
+ GetInstance()->GetServiceForBrowserContext(context, true));
+}
+
+// static
FaviconServiceFactory* FaviconServiceFactory::GetInstance() {
return Singleton<FaviconServiceFactory>::get();
}

Powered by Google App Engine
This is Rietveld 408576698