Commit 81488823 authored by Side Yilmaz's avatar Side Yilmaz Committed by Commit Bot

Replace deprecated createImageFetcher function in LogoDelegateImpl.

This CL replaces |ImageFetcherFactory#createImageFetcher| functions in
LogoDelegateImpl by using newer function with profile parameter. Today,
image fetcher is created with regular profile always, even in incognito
mode. By this CL, LogoDelegateImpl will create image fetcher with the
profile coming via constructor.

Bug: 1041781, 1083923, 1075562
Change-Id: I1d6df827b29e8f284a2ee5e7c2859b29399d2433
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2279201Reviewed-by: default avatarRamin Halavati <rhalavati@chromium.org>
Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Commit-Queue: Side YILMAZ <sideyilmaz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#787649}
parent a4ba9a8f
...@@ -60,7 +60,8 @@ public class LogoDelegateImpl implements LogoView.Delegate { ...@@ -60,7 +60,8 @@ public class LogoDelegateImpl implements LogoView.Delegate {
mNavigationDelegate = navigationDelegate; mNavigationDelegate = navigationDelegate;
mLogoView = logoView; mLogoView = logoView;
mLogoBridge = new LogoBridge(profile); mLogoBridge = new LogoBridge(profile);
mImageFetcher = ImageFetcherFactory.createImageFetcher(ImageFetcherConfig.DISK_CACHE_ONLY); mImageFetcher =
ImageFetcherFactory.createImageFetcher(ImageFetcherConfig.DISK_CACHE_ONLY, profile);
} }
public void destroy() { public void destroy() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment