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

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: 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
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..706dc5877d1168441eecb9a9f38eb7e41797011e 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),
+ GetPreferredIconSize(),
Matt Giuca 2014/08/12 06:43:24 So we're explicitly forking these values away from
calamity 2014/08/13 06:03:17 Tried it. It didn't seem to be a problem. Semantic
Matt Giuca 2014/08/13 06:15:25 Acknowledged.
+ extensions::util::GetDefaultAppIcon(),
+ this));
UpdateIcon();
StartObservingExtensionRegistry();

Powered by Google App Engine
This is Rietveld 408576698