Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Unified Diff: chrome/browser/ui/webui/fileicon_source.cc

Issue 7397021: Re-land r93365 - add RefCountedString (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: erg comments Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/fileicon_source.cc
diff --git a/chrome/browser/ui/webui/fileicon_source.cc b/chrome/browser/ui/webui/fileicon_source.cc
index 94301af646efb87ffc6838a1b82c4846883a44dc..fa5bebfd682242af9236d1cbf7e84a6ce519ff32 100644
--- a/chrome/browser/ui/webui/fileicon_source.cc
+++ b/chrome/browser/ui/webui/fileicon_source.cc
@@ -45,7 +45,7 @@ void FileIconSource::StartDataRequest(const std::string& path,
if (icon) {
scoped_refptr<RefCountedBytes> icon_data(new RefCountedBytes);
- gfx::PNGCodec::EncodeBGRASkBitmap(*icon, false, &icon_data->data);
+ gfx::PNGCodec::EncodeBGRASkBitmap(*icon, false, icon_data->data());
SendResponse(request_id, icon_data);
} else {
@@ -72,7 +72,7 @@ void FileIconSource::OnFileIconDataAvailable(IconManager::Handle handle,
if (icon) {
scoped_refptr<RefCountedBytes> icon_data(new RefCountedBytes);
- gfx::PNGCodec::EncodeBGRASkBitmap(*icon, false, &icon_data->data);
+ gfx::PNGCodec::EncodeBGRASkBitmap(*icon, false, icon_data->data());
SendResponse(request_id, icon_data);
} else {

Powered by Google App Engine
This is Rietveld 408576698