| Index: chrome/browser/shell_integration_linux.cc
|
| diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc
|
| index 2a656fe711e02704e7c9e9ed896b47b173b8a008..67adc721b774ccc74e3b87f4405f477629a2fc23 100644
|
| --- a/chrome/browser/shell_integration_linux.cc
|
| +++ b/chrome/browser/shell_integration_linux.cc
|
| @@ -36,8 +36,7 @@
|
| #include "content/public/browser/browser_thread.h"
|
| #include "googleurl/src/gurl.h"
|
| #include "ui/gfx/codec/png_codec.h"
|
| -#include "ui/gfx/image/image_skia.h"
|
| -#include "ui/gfx/image/image_skia_rep.h"
|
| +#include "ui/gfx/icon_family.h"
|
|
|
| using content::BrowserThread;
|
|
|
| @@ -75,7 +74,7 @@ bool LaunchXdgUtility(const std::vector<std::string>& argv, int* exit_code) {
|
| std::string CreateShortcutIcon(
|
| const ShellIntegration::ShortcutInfo& shortcut_info,
|
| const base::FilePath& shortcut_filename) {
|
| - if (shortcut_info.favicon.IsEmpty())
|
| + if (shortcut_info.favicon.empty())
|
| return std::string();
|
|
|
| // TODO(phajdan.jr): Report errors from this function, possibly as infobars.
|
| @@ -87,12 +86,10 @@ std::string CreateShortcutIcon(
|
| shortcut_filename.ReplaceExtension("png"));
|
| std::string icon_name = temp_file_path.BaseName().RemoveExtension().value();
|
|
|
| - std::vector<gfx::ImageSkiaRep> image_reps =
|
| - shortcut_info.favicon.ToImageSkia()->image_reps();
|
| - for (std::vector<gfx::ImageSkiaRep>::const_iterator it = image_reps.begin();
|
| - it != image_reps.end(); ++it) {
|
| + for (gfx::IconFamily::const_iterator it = shortcut_info.favicon.begin();
|
| + it != shortcut_info.favicon.end(); ++it) {
|
| std::vector<unsigned char> png_data;
|
| - const SkBitmap& bitmap = it->sk_bitmap();
|
| + const SkBitmap& bitmap = *it->bitmap();
|
| if (!gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, false, &png_data)) {
|
| // If the bitmap could not be encoded to PNG format, skip it.
|
| LOG(WARNING) << "Could not encode icon " << icon_name << ".png at size "
|
|
|