| Index: chrome/browser/favicon/large_icon_service_factory.cc
|
| diff --git a/chrome/browser/favicon/large_icon_service_factory.cc b/chrome/browser/favicon/large_icon_service_factory.cc
|
| index 2272b2c05cfa46b010df2b87114c19d3cac0b261..318ea149354da3a5b14bddac47970216043c56af 100644
|
| --- a/chrome/browser/favicon/large_icon_service_factory.cc
|
| +++ b/chrome/browser/favicon/large_icon_service_factory.cc
|
| @@ -9,8 +9,11 @@
|
| #include "chrome/browser/favicon/favicon_service_factory.h"
|
| #include "chrome/browser/profiles/incognito_helpers.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| +#include "chrome/browser/search/suggestions/image_decoder_impl.h"
|
| #include "components/favicon/core/favicon_service.h"
|
| #include "components/favicon/core/large_icon_service.h"
|
| +#include "components/image_fetcher/core/image_decoder.h"
|
| +#include "components/image_fetcher/core/image_fetcher_impl.h"
|
| #include "components/keyed_service/content/browser_context_dependency_manager.h"
|
| #include "content/public/browser/browser_context.h"
|
| #include "content/public/browser/browser_thread.h"
|
| @@ -43,13 +46,18 @@ content::BrowserContext* LargeIconServiceFactory::GetBrowserContextToUse(
|
|
|
| KeyedService* LargeIconServiceFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* context) const {
|
| + Profile* profile = Profile::FromBrowserContext(context);
|
| favicon::FaviconService* favicon_service =
|
| - FaviconServiceFactory::GetForProfile(Profile::FromBrowserContext(context),
|
| + FaviconServiceFactory::GetForProfile(profile,
|
| ServiceAccessType::EXPLICIT_ACCESS);
|
| return new favicon::LargeIconService(
|
| - favicon_service, content::BrowserThread::GetBlockingPool()
|
| - ->GetTaskRunnerWithShutdownBehavior(
|
| - base::SequencedWorkerPool::SKIP_ON_SHUTDOWN));
|
| + favicon_service,
|
| + content::BrowserThread::GetBlockingPool()
|
| + ->GetTaskRunnerWithShutdownBehavior(
|
| + base::SequencedWorkerPool::SKIP_ON_SHUTDOWN),
|
| + base::MakeUnique<image_fetcher::ImageFetcherImpl>(
|
| + base::MakeUnique<suggestions::ImageDecoderImpl>(),
|
| + profile->GetRequestContext()));
|
| }
|
|
|
| bool LargeIconServiceFactory::ServiceIsNULLWhileTesting() const {
|
|
|