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

Unified Diff: ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc

Issue 2324793002: Support WebP images in the IOSImageDecoderImpl (Closed)
Patch Set: noyau@ comments. Created 4 years, 3 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: ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc
diff --git a/ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc b/ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc
index 4ce446eff482d7fb29561b07ffa3d8dbb04b39c1..29cdfa4c64759637869bcd8342ebd33021d2c441 100644
--- a/ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc
+++ b/ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc
@@ -51,7 +51,7 @@ using ntp_snippets::NTPSnippetsScheduler;
using ntp_snippets::NTPSnippetsService;
using ntp_snippets::NTPSnippetsStatusService;
using suggestions::ImageFetcherImpl;
-using suggestions::IOSImageDecoderImpl;
+using suggestions::createIOSImageDecoder;
using suggestions::SuggestionsService;
using suggestions::SuggestionsServiceFactory;
@@ -164,7 +164,7 @@ IOSChromeContentSuggestionsServiceFactory::BuildServiceInstanceFor(
GetChannel() == version_info::Channel::STABLE),
base::MakeUnique<ImageFetcherImpl>(
request_context.get(), web::WebThread::GetBlockingPool()),
- base::MakeUnique<IOSImageDecoderImpl>(),
+ createIOSImageDecoder(nullptr),
base::MakeUnique<NTPSnippetsDatabase>(database_dir, task_runner),
base::MakeUnique<NTPSnippetsStatusService>(signin_manager, prefs));
service->set_ntp_snippets_service(ntp_snippets_service.get());

Powered by Google App Engine
This is Rietveld 408576698