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

Unified Diff: chrome/browser/ui/cocoa/reload_button.mm

Issue 5961007: Move nsimage_cache from base to app/mac. Use the app::mac namespace. Update c... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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/cocoa/reload_button.mm
===================================================================
--- chrome/browser/ui/cocoa/reload_button.mm (revision 69953)
+++ chrome/browser/ui/cocoa/reload_button.mm (working copy)
@@ -6,7 +6,7 @@
#include "app/l10n_util.h"
#include "app/l10n_util_mac.h"
-#include "base/nsimage_cache_mac.h"
+#include "app/mac/nsimage_cache.h"
#include "chrome/app/chrome_command_ids.h"
#import "chrome/browser/ui/cocoa/gradient_button_cell.h"
#import "chrome/browser/ui/cocoa/view_id_util.h"
@@ -69,10 +69,10 @@
[self setTag:anInt];
if (anInt == IDC_RELOAD) {
- [self setImage:nsimage_cache::ImageNamed(kReloadImageName)];
+ [self setImage:app::mac::GetCachedImageWithName(kReloadImageName)];
[self setToolTip:l10n_util::GetNSStringWithFixup(IDS_TOOLTIP_RELOAD)];
} else if (anInt == IDC_STOP) {
- [self setImage:nsimage_cache::ImageNamed(kStopImageName)];
+ [self setImage:app::mac::GetCachedImageWithName(kStopImageName)];
[self setToolTip:l10n_util::GetNSStringWithFixup(IDS_TOOLTIP_STOP)];
} else {
NOTREACHED();
« no previous file with comments | « chrome/browser/ui/cocoa/nsimage_cache_unittest.mm ('k') | chrome/browser/ui/cocoa/search_engine_dialog_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698