| 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 9cc19313a94815e438bc09876526a4bb7c9a63f8..8a4be085c5584cd0d6653127685a567ffaf33c0c 100644
|
| --- a/chrome/browser/web_applications/web_app_mac.mm
|
| +++ b/chrome/browser/web_applications/web_app_mac.mm
|
| @@ -22,6 +22,7 @@
|
| #include "skia/ext/skia_utils_mac.h"
|
| #include "third_party/icon_family/IconFamily.h"
|
| #include "ui/base/l10n/l10n_util_mac.h"
|
| +#include "ui/gfx/image/image_skia.h"
|
|
|
| namespace {
|
|
|
| @@ -197,9 +198,10 @@ bool WebAppShortcutCreator::UpdateIcon(const FilePath& app_path) const {
|
|
|
| scoped_nsobject<IconFamily> icon_family([[IconFamily alloc] init]);
|
| bool image_added = false;
|
| - for (size_t i = 0; i < info_.favicon.GetNumberOfSkBitmaps(); ++i) {
|
| + const gfx::ImageSkia* image_skia = info_.favicon.ToImageSkia();
|
| + for (size_t i = 0; i < image_skia->GetNumberOfBitmaps(); ++i) {
|
| NSBitmapImageRep* image_rep =
|
| - SkBitmapToImageRep(*info_.favicon.GetSkBitmapAtIndex(i));
|
| + SkBitmapToImageRep(*image_skia->GetBitmapAtIndex(i));
|
| if (!image_rep)
|
| continue;
|
|
|
|
|