diff options
author | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-15 03:52:53 +0000 |
---|---|---|
committer | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-15 03:52:53 +0000 |
commit | d791018e637fe65c72448b55e1e786bfb0154eab (patch) | |
tree | 8abf881ab2ba1eb4a8a94231a66e6e955f0e2316 /chrome/browser/icon_loader_win.cc | |
parent | ea3ee0a8f3e4841e7e27dfc371c98a8b5dd5ca9a (diff) | |
download | chromium_src-d791018e637fe65c72448b55e1e786bfb0154eab.zip chromium_src-d791018e637fe65c72448b55e1e786bfb0154eab.tar.gz chromium_src-d791018e637fe65c72448b55e1e786bfb0154eab.tar.bz2 |
Get rid of Image::Image(SkBitmap*)
Bug=124566
Test=Compiles on CrOS,Mac
Review URL: https://chromiumcodereview.appspot.com/10378009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137075 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/icon_loader_win.cc')
-rw-r--r-- | chrome/browser/icon_loader_win.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/icon_loader_win.cc b/chrome/browser/icon_loader_win.cc index f51c064..c217bff 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)); |