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(); |
} |