Index: ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc |
diff --git a/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc b/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc |
index c4cb425177768d3dab3b222c9f3ad5ad3a289e1c..6434e048616fdbe88f2d56d8f101dbdf774b4d79 100644 |
--- a/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc |
+++ b/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc |
@@ -25,6 +25,7 @@ |
#include "ios/chrome/browser/signin/oauth2_token_service_factory.h" |
#include "ios/chrome/browser/signin/signin_manager_factory.h" |
#include "ios/chrome/browser/suggestions/image_fetcher_impl.h" |
+#include "ios/chrome/browser/suggestions/ios_image_decoder_impl.h" |
#include "ios/chrome/browser/suggestions/suggestions_service_factory.h" |
#include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" |
#include "ios/chrome/common/channel_info.h" |
@@ -33,6 +34,7 @@ |
#include "net/url_request/url_request_context_getter.h" |
using suggestions::ImageFetcherImpl; |
+using suggestions::IOSImageDecoderImpl; |
using suggestions::SuggestionsService; |
using suggestions::SuggestionsServiceFactory; |
@@ -121,7 +123,7 @@ IOSChromeNTPSnippetsServiceFactory::BuildServiceInstanceFor( |
GetChannel() == version_info::Channel::STABLE)), |
base::WrapUnique(new ImageFetcherImpl(request_context.get(), |
web::WebThread::GetBlockingPool())), |
- nullptr, /* image_decoder */ |
+ base::MakeUnique<IOSImageDecoderImpl>(), |
base::WrapUnique( |
new ntp_snippets::NTPSnippetsDatabase(database_dir, task_runner)))); |
} |