| Index: chrome/browser/icon_loader_win.cc
|
| diff --git a/chrome/browser/icon_loader_win.cc b/chrome/browser/icon_loader_win.cc
|
| index f51c0649900657de51841b58c9a765f84caf9642..c217bffcd1319b89f8228d2199c12b388af23eb3 100644
|
| --- a/chrome/browser/icon_loader_win.cc
|
| +++ b/chrome/browser/icon_loader_win.cc
|
| @@ -10,6 +10,7 @@
|
| #include "base/bind.h"
|
| #include "base/message_loop.h"
|
| #include "base/threading/thread.h"
|
| +#include "third_party/skia/include/core/SkBitmap.h"
|
| #include "ui/gfx/icon_util.h"
|
| #include "ui/gfx/size.h"
|
|
|
| @@ -34,8 +35,9 @@ void IconLoader::ReadIcon() {
|
| SHGFI_ICON | size | SHGFI_USEFILEATTRIBUTES))
|
| return;
|
|
|
| - image_.reset(new gfx::Image(
|
| - IconUtil::CreateSkBitmapFromHICON(file_info.hIcon)));
|
| + scoped_ptr<SkBitmap> bitmap(IconUtil::CreateSkBitmapFromHICON(
|
| + file_info.hIcon));
|
| + image_.reset(new gfx::Image(*bitmap));
|
| DestroyIcon(file_info.hIcon);
|
| target_message_loop_->PostTask(FROM_HERE,
|
| base::Bind(&IconLoader::NotifyDelegate, this));
|
|
|