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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.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/browser_window_controller.mm
===================================================================
--- chrome/browser/ui/cocoa/browser_window_controller.mm (revision 69953)
+++ chrome/browser/ui/cocoa/browser_window_controller.mm (working copy)
@@ -8,9 +8,9 @@
#include "app/l10n_util.h"
#include "app/l10n_util_mac.h"
+#include "app/mac/scoped_nsdisable_screen_updates.h"
+#include "app/mac/nsimage_cache.h"
#include "base/mac_util.h"
-#include "app/mac/scoped_nsdisable_screen_updates.h"
-#include "base/nsimage_cache_mac.h"
#import "base/scoped_nsobject.h"
#include "base/sys_string_conversions.h"
#include "chrome/app/chrome_command_ids.h" // IDC_*
@@ -1583,7 +1583,7 @@
// Install the image into the badge view and size the view appropriately.
// Hide it for now; positioning and showing will be done by the layout code.
- NSImage* image = nsimage_cache::ImageNamed(@"otr_icon.pdf");
+ NSImage* image = app::mac::GetCachedImageWithName(@"otr_icon.pdf");
incognitoBadge_.reset([[IncognitoImageView alloc] init]);
[incognitoBadge_ setImage:image];
[incognitoBadge_ setFrameSize:[image size]];

Powered by Google App Engine
This is Rietveld 408576698