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

Unified Diff: chrome/browser/cocoa/download_shelf_controller.mm

Issue 260012: Use more images from the pak files... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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
« no previous file with comments | « chrome/browser/cocoa/download_item_controller.mm ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/download_shelf_controller.mm
===================================================================
--- chrome/browser/cocoa/download_shelf_controller.mm (revision 28388)
+++ chrome/browser/cocoa/download_shelf_controller.mm (working copy)
@@ -5,6 +5,7 @@
#import "chrome/browser/cocoa/download_shelf_controller.h"
#include "app/l10n_util.h"
+#include "app/resource_bundle.h"
#include "base/mac_util.h"
#include "base/sys_string_conversions.h"
#include "chrome/browser/browser.h"
@@ -87,6 +88,11 @@
[[showAllDownloadsLink_ textStorage] setAttributedString:linkText.get()];
[showAllDownloadsLink_ setDelegate:self];
+ ResourceBundle& rb = ResourceBundle::GetSharedInstance();
+ NSImage* favicon = rb.GetNSImageNamed(IDR_DOWNLOADS_FAVICON);
+ DCHECK(favicon);
+ [image_ setImage:favicon];
+
[self resizeDownloadLinkToFit];
}
« no previous file with comments | « chrome/browser/cocoa/download_item_controller.mm ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698