Commit c53dd138 authored by Nigel Tao's avatar Nigel Tao Committed by Commit Bot

Remove a redundant InternalAppIconLoader field

Change-Id: I73c538d0ebf1e4b1aa71e91f32d8102e1fd0c435
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1510696Reviewed-by: default avatarYury Khmel <khmel@chromium.org>
Commit-Queue: Nigel Tao <nigeltao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#641011}
parent 7756e942
......@@ -10,8 +10,7 @@
InternalAppIconLoader::InternalAppIconLoader(Profile* profile,
int resource_size_in_dip,
AppIconLoaderDelegate* delegate)
: AppIconLoader(profile, resource_size_in_dip, delegate),
resource_size_in_dip_(resource_size_in_dip) {}
: AppIconLoader(profile, resource_size_in_dip, delegate) {}
InternalAppIconLoader::~InternalAppIconLoader() = default;
......@@ -27,7 +26,7 @@ void InternalAppIconLoader::FetchImage(const std::string& app_id) {
std::unique_ptr<gfx::ImageSkia> image_skia =
std::make_unique<gfx::ImageSkia>(app_list::GetIconForResourceId(
app_list::GetIconResourceIdByAppId(app_id), resource_size_in_dip_));
app_list::GetIconResourceIdByAppId(app_id), icon_size_in_dip()));
image_skia->EnsureRepsForSupportedScales();
icon_map_[app_id] = std::move(image_skia);
UpdateImage(app_id);
......
......@@ -32,9 +32,6 @@ class InternalAppIconLoader : public AppIconLoader {
private:
using AppIDToIconMap = std::map<std::string, std::unique_ptr<gfx::ImageSkia>>;
// The preferred icon size.
int resource_size_in_dip_;
// Maps from internal app id to icon.
AppIDToIconMap icon_map_;
......
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