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

Unified Diff: chrome/browser/dom_ui/downloads_ui.cc

Issue 288005: First fix to minimize copying of image data. (Closed)
Patch Set: Modify gyp Created 11 years, 2 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/dom_ui/downloads_ui.cc
diff --git a/chrome/browser/dom_ui/downloads_ui.cc b/chrome/browser/dom_ui/downloads_ui.cc
index 52a26dfebd3de1ea671f38dea926197a94712c8a..3de6f5a7fb7d15cb071244334ecfcc51ddb7dea6 100644
--- a/chrome/browser/dom_ui/downloads_ui.cc
+++ b/chrome/browser/dom_ui/downloads_ui.cc
@@ -139,7 +139,7 @@ DownloadsUI::DownloadsUI(TabContents* contents) : DOMUI(contents) {
}
// static
-bool DownloadsUI::GetFaviconResourceBytes(std::vector<unsigned char>* bytes) {
+RefCountedMemory* DownloadsUI::GetFaviconResourceBytes() {
return ResourceBundle::GetSharedInstance().
- LoadImageResourceBytes(IDR_DOWNLOADS_FAVICON, bytes);
+ LoadImageResourceBytes(IDR_DOWNLOADS_FAVICON);
}

Powered by Google App Engine
This is Rietveld 408576698