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

Unified Diff: chrome/browser/extensions/app_shortcut_manager.cc

Issue 10701087: chromeos: Fix pixelated icons in app list and launcher (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for comments in #3, add an ImageSource and makes ImageLoadingTracker auto load image for additional… Created 8 years, 5 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/extensions/app_shortcut_manager.cc
diff --git a/chrome/browser/extensions/app_shortcut_manager.cc b/chrome/browser/extensions/app_shortcut_manager.cc
index b6497f39d945f80a3401320cb93c88e8fca55fe5..e6f602800f88f1a8e2c4d70ae0f521b576bbd317 100644
--- a/chrome/browser/extensions/app_shortcut_manager.cc
+++ b/chrome/browser/extensions/app_shortcut_manager.cc
@@ -112,7 +112,9 @@ void AppShortcutManager::InstallApplicationShortcuts(
size, ExtensionIconSet::MATCH_EXACTLY);
if (!resource.empty()) {
info_list.push_back(
- ImageLoadingTracker::ImageInfo(resource, gfx::Size(size, size)));
+ ImageLoadingTracker::ImageInfo(resource,
+ gfx::Size(size, size),
+ ui::SCALE_FACTOR_NONE));
pkotwicz 2012/07/16 17:33:52 ui::SCALE_FACTOR_100P
xiyuan 2012/07/16 20:11:27 Changed but AppShortcutManager loads multi-resolut
}
}
@@ -130,7 +132,9 @@ void AppShortcutManager::InstallApplicationShortcuts(
size, ExtensionIconSet::MATCH_SMALLER);
}
info_list.push_back(
- ImageLoadingTracker::ImageInfo(resource, gfx::Size(size, size)));
+ ImageLoadingTracker::ImageInfo(resource,
+ gfx::Size(size, size),
+ ui::SCALE_FACTOR_NONE));
pkotwicz 2012/07/16 17:33:52 Change this to ui::SCALE_FACTOR_100P
xiyuan 2012/07/16 20:11:27 Done.
}
// |icon_resources| may still be empty at this point, in which case LoadImage
« no previous file with comments | « no previous file | chrome/browser/extensions/image_loading_tracker.h » ('j') | chrome/browser/extensions/image_loading_tracker.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698