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

Unified Diff: chrome/browser/ui/app_list/search/app_result.cc

Issue 458983004: Move app list search result icon sizes to app_list_constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile Created 6 years, 4 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 | « no previous file | chrome/browser/ui/app_list/search/people/people_result.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/search/app_result.cc
diff --git a/chrome/browser/ui/app_list/search/app_result.cc b/chrome/browser/ui/app_list/search/app_result.cc
index 578f6f60987eefb99fb656aac8d078c432c31d16..f3a0b13c8d4e5fd2c5853872ec168839a240bad4 100644
--- a/chrome/browser/ui/app_list/search/app_result.cc
+++ b/chrome/browser/ui/app_list/search/app_result.cc
@@ -47,14 +47,13 @@ AppResult::AppResult(Profile* profile,
is_platform_app_ = extension->is_platform_app();
- icon_.reset(new extensions::IconImage(
- profile_,
- extension,
- extensions::IconsInfo::GetIcons(extension),
- display_type() == DISPLAY_TILE ? extension_misc::EXTENSION_ICON_MEDIUM
- : extension_misc::EXTENSION_ICON_SMALL,
- extensions::util::GetDefaultAppIcon(),
- this));
+ icon_.reset(
+ new extensions::IconImage(profile_,
+ extension,
+ extensions::IconsInfo::GetIcons(extension),
+ GetPreferredIconDimension(),
+ extensions::util::GetDefaultAppIcon(),
+ this));
UpdateIcon();
StartObservingExtensionRegistry();
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/search/people/people_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698