summaryrefslogtreecommitdiffstats
path: root/chrome/browser/themes
diff options
context:
space:
mode:
authorsail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-25 13:10:33 +0000
committersail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-25 13:10:33 +0000
commit954ec2e600852fff44837e593b2b3f80209597e2 (patch)
tree6f6b3776d6f29fb00c892a1f39c339447c23d56b /chrome/browser/themes
parent61b86fbd9ea4e2bb6c125dcf995526031bde6eda (diff)
downloadchromium_src-954ec2e600852fff44837e593b2b3f80209597e2.zip
chromium_src-954ec2e600852fff44837e593b2b3f80209597e2.tar.gz
chromium_src-954ec2e600852fff44837e593b2b3f80209597e2.tar.bz2
Revert 82838 - Temporary change to test perf regression (full)This change tests which part of this review:http://codereview.chromium.org/6897013/is causing a performance regression. This change will be reverted later tonight.
TBR=sail@chromium.org Review URL: http://codereview.chromium.org/6895050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82856 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/themes')
-rw-r--r--chrome/browser/themes/theme_service_mac.mm16
1 files changed, 2 insertions, 14 deletions
diff --git a/chrome/browser/themes/theme_service_mac.mm b/chrome/browser/themes/theme_service_mac.mm
index 73fd814..30d359e 100644
--- a/chrome/browser/themes/theme_service_mac.mm
+++ b/chrome/browser/themes/theme_service_mac.mm
@@ -10,9 +10,7 @@
#include "chrome/browser/themes/browser_theme_pack.h"
#include "skia/ext/skia_utils_mac.h"
#import "third_party/GTM/AppKit/GTMNSColor+Luminance.h"
-#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/color_utils.h"
-#include "ui/gfx/image.h"
NSString* const kBrowserThemeDidChangeNotification =
@"BrowserThemeDidChangeNotification";
@@ -46,18 +44,8 @@ NSImage* ThemeService::GetNSImageNamed(int id, bool allow_default) const {
// SkBitmap > native conversion?
// - For consistency with other platforms.
// - To get the generated tinted images.
- NSImage* nsimage = nil;
- if (theme_pack_.get()) {
- SkBitmap* bitmap = theme_pack_->GetBitmapNamed(id);
- if (bitmap)
- nsimage = gfx::SkBitmapToNSImage(*bitmap);
- }
-
- // If the theme didn't override this image then load it from the resource
- // bundle.
- if (!nsimage) {
- nsimage = rb_.GetNativeImageNamed(id);
- }
+ SkBitmap* bitmap = GetBitmapNamed(id);
+ NSImage* nsimage = gfx::SkBitmapToNSImage(*bitmap);
// We loaded successfully. Cache the image.
if (nsimage) {