summaryrefslogtreecommitdiffstats
path: root/chrome/browser/favicon
diff options
context:
space:
mode:
authortoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-14 05:48:54 +0000
committertoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-14 05:48:54 +0000
commit2b4f7e7be99649ad667ec6658448dcebc75ec124 (patch)
treeae4ecaed0c7f891bd20a2f2e53229e9c082c605e /chrome/browser/favicon
parent701d1e8389d6f6b93f557e0a73b79ccaea5b8ac6 (diff)
downloadchromium_src-2b4f7e7be99649ad667ec6658448dcebc75ec124.zip
chromium_src-2b4f7e7be99649ad667ec6658448dcebc75ec124.tar.gz
chromium_src-2b4f7e7be99649ad667ec6658448dcebc75ec124.tar.bz2
Revert 136823 - Get rid of Image::Image(SkBitmap*); because of win build failure
Bug=124566 Test=Compiles on CrOS,Mac Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=136812 Review URL: https://chromiumcodereview.appspot.com/10378009 TBR=pkotwicz@chromium.org Review URL: https://chromiumcodereview.appspot.com/10392075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/favicon')
-rw-r--r--chrome/browser/favicon/favicon_tab_helper.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/favicon/favicon_tab_helper.cc b/chrome/browser/favicon/favicon_tab_helper.cc
index 3aac80f..2d7cda3 100644
--- a/chrome/browser/favicon/favicon_tab_helper.cc
+++ b/chrome/browser/favicon/favicon_tab_helper.cc
@@ -186,7 +186,7 @@ void FaviconTabHelper::OnDidDownloadFavicon(int id,
const GURL& image_url,
bool errored,
const SkBitmap& image) {
- gfx::Image favicon(image);
+ gfx::Image favicon(new SkBitmap(image));
favicon_handler_->OnDidDownloadFavicon(id, image_url, errored, favicon);
if (touch_icon_handler_.get())
touch_icon_handler_->OnDidDownloadFavicon(id, image_url, errored, favicon);