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

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

Issue 194101: Update the sadtab and throbbers to use the helpers for fetching strings/image... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 3 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/sad_tab_view.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/tab_strip_controller.mm
===================================================================
--- chrome/browser/cocoa/tab_strip_controller.mm (revision 26101)
+++ chrome/browser/cocoa/tab_strip_controller.mm (working copy)
@@ -5,6 +5,7 @@
#import "chrome/browser/cocoa/tab_strip_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/app/chrome_dll_resource.h"
@@ -28,6 +29,7 @@
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/tab_contents/tab_contents_view.h"
#include "chrome/browser/tabs/tab_strip_model.h"
+#include "grit/app_resources.h"
#include "grit/generated_resources.h"
#include "skia/ext/skia_utils_mac.h"
@@ -672,11 +674,14 @@
return;
static NSImage* throbberWaitingImage =
- [nsimage_cache::ImageNamed(@"throbber_waiting.png") retain];
+ [ResourceBundle::GetSharedInstance().GetNSImageNamed(IDR_THROBBER_WAITING)
+ retain];
static NSImage* throbberLoadingImage =
- [nsimage_cache::ImageNamed(@"throbber.png") retain];
+ [ResourceBundle::GetSharedInstance().GetNSImageNamed(IDR_THROBBER)
+ retain];
static NSImage* sadFaviconImage =
- [nsimage_cache::ImageNamed(@"sadfavicon.png") retain];
+ [ResourceBundle::GetSharedInstance().GetNSImageNamed(IDR_SAD_FAVICON)
+ retain];
TabController* tabController = [tabArray_ objectAtIndex:index];
« no previous file with comments | « chrome/browser/cocoa/sad_tab_view.mm ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698