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

Unified Diff: chrome/browser/web_applications/web_app_mac.mm

Issue 10820049: Load 2x resources on demand (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated comment Created 8 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 | « chrome/browser/ui/app_list/extension_app_item.cc ('k') | ui/app_list/app_list_item_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/web_applications/web_app_mac.mm
diff --git a/chrome/browser/web_applications/web_app_mac.mm b/chrome/browser/web_applications/web_app_mac.mm
index 22469261ae1ba4264c7a0046f495fc63e00eecb7..f373076973c9032c0047eeba50b910d72470c833 100644
--- a/chrome/browser/web_applications/web_app_mac.mm
+++ b/chrome/browser/web_applications/web_app_mac.mm
@@ -198,8 +198,9 @@ bool WebAppShortcutCreator::UpdateIcon(const FilePath& app_path) const {
scoped_nsobject<IconFamily> icon_family([[IconFamily alloc] init]);
bool image_added = false;
+ info_.favicon.ToImageSkia()->EnsureRepsForSupportedScaleFactors();
std::vector<gfx::ImageSkiaRep> image_reps =
- info_.favicon.ToImageSkia()->GetRepresentations();
+ info_.favicon.ToImageSkia()->image_reps();
for (size_t i = 0; i < image_reps.size(); ++i) {
NSBitmapImageRep* image_rep = SkBitmapToImageRep(
image_reps[i].sk_bitmap());
« no previous file with comments | « chrome/browser/ui/app_list/extension_app_item.cc ('k') | ui/app_list/app_list_item_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698