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

Unified Diff: chrome/browser/search/thumbnail_source.cc

Issue 2074153002: Pass the ImageDecoder to the ImageFetcher at creation time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move image_fetcher_impl.* to components/image_fetcher Created 4 years, 6 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: chrome/browser/search/thumbnail_source.cc
diff --git a/chrome/browser/search/thumbnail_source.cc b/chrome/browser/search/thumbnail_source.cc
index 3d9faef32b4b53f1a03ae22f410e11713bfa2644..d6f793584819ffce6d4dcc67de701a929bb41398 100644
--- a/chrome/browser/search/thumbnail_source.cc
+++ b/chrome/browser/search/thumbnail_source.cc
@@ -11,10 +11,11 @@
#include "base/message_loop/message_loop.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search/instant_io_context.h"
-#include "chrome/browser/search/suggestions/image_fetcher_impl.h"
+#include "chrome/browser/search/suggestions/image_decoder_impl.h"
#include "chrome/browser/thumbnails/thumbnail_service.h"
#include "chrome/browser/thumbnails/thumbnail_service_factory.h"
#include "chrome/common/url_constants.h"
+#include "components/image_fetcher/image_fetcher_impl.h"
#include "components/suggestions/image_encoder.h"
#include "net/url_request/url_request.h"
#include "ui/gfx/image/image.h"
@@ -30,7 +31,9 @@ ThumbnailSource::ThumbnailSource(Profile* profile, bool capture_thumbnails)
capture_thumbnails_(capture_thumbnails),
weak_ptr_factory_(this) {
image_fetcher_.reset(
- new suggestions::ImageFetcherImpl(profile->GetRequestContext()));
+ new image_fetcher::ImageFetcherImpl(
+ new suggestions::ImageDecoderImpl(),
+ profile->GetRequestContext()));
}
ThumbnailSource::~ThumbnailSource() {

Powered by Google App Engine
This is Rietveld 408576698