Index: chrome/browser/dom_ui/fileicon_source.cc |
diff --git a/chrome/browser/dom_ui/fileicon_source.cc b/chrome/browser/dom_ui/fileicon_source.cc |
index 599c7551f7ff200979f249fc68c2d911e70f8c6b..7572cdc8d0014a918548a3744e053e87425c3893 100644 |
--- a/chrome/browser/dom_ui/fileicon_source.cc |
+++ b/chrome/browser/dom_ui/fileicon_source.cc |
@@ -43,7 +43,7 @@ void FileIconSource::StartDataRequest(const std::string& path, |
SkBitmap* icon = im->LookupIcon(escaped_filepath, IconLoader::NORMAL); |
if (icon) { |
- scoped_refptr<RefCountedBytes> icon_data = new RefCountedBytes; |
+ scoped_refptr<RefCountedBytes> icon_data(new RefCountedBytes); |
gfx::PNGCodec::EncodeBGRASkBitmap(*icon, false, &icon_data->data); |
SendResponse(request_id, icon_data); |
@@ -65,7 +65,7 @@ void FileIconSource::OnFileIconDataAvailable(IconManager::Handle handle, |
int request_id = cancelable_consumer_.GetClientData(im, handle); |
if (icon) { |
- scoped_refptr<RefCountedBytes> icon_data = new RefCountedBytes; |
+ scoped_refptr<RefCountedBytes> icon_data(new RefCountedBytes); |
gfx::PNGCodec::EncodeBGRASkBitmap(*icon, false, &icon_data->data); |
SendResponse(request_id, icon_data); |