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

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: rebase + sdefresne@ comments. Created 4 years, 2 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
« no previous file with comments | « ios/chrome/BUILD.gn ('k') | ios/chrome/browser/suggestions/ios_image_decoder_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e36004cbfef3097bc06c636e9b9f26d5abfd75bb..87590148b2b4f3feb2c7639e47aa0d92d11a0fff 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
@@ -9,6 +9,7 @@
#include "base/json/json_reader.h"
#include "base/memory/ptr_util.h"
#include "base/memory/singleton.h"
+#include "base/threading/sequenced_worker_pool.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/values.h"
#include "components/bookmarks/browser/bookmark_model.h"
@@ -50,8 +51,8 @@ using ntp_snippets::NTPSnippetsFetcher;
using ntp_snippets::NTPSnippetsScheduler;
using ntp_snippets::NTPSnippetsService;
using ntp_snippets::NTPSnippetsStatusService;
+using suggestions::CreateIOSImageDecoder;
using suggestions::ImageFetcherImpl;
-using suggestions::IOSImageDecoderImpl;
namespace {
@@ -162,7 +163,7 @@ IOSChromeContentSuggestionsServiceFactory::BuildServiceInstanceFor(
: google_apis::GetNonStableAPIKey()),
base::MakeUnique<ImageFetcherImpl>(
request_context.get(), web::WebThread::GetBlockingPool()),
- base::MakeUnique<IOSImageDecoderImpl>(),
+ CreateIOSImageDecoder(task_runner),
base::MakeUnique<NTPSnippetsDatabase>(database_dir, task_runner),
base::MakeUnique<NTPSnippetsStatusService>(signin_manager, prefs));
service->set_ntp_snippets_service(ntp_snippets_service.get());
« no previous file with comments | « ios/chrome/BUILD.gn ('k') | ios/chrome/browser/suggestions/ios_image_decoder_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698