summaryrefslogtreecommitdiffstats
path: root/app/resource_bundle.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-30 20:55:55 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-30 20:55:55 +0000
commit0d3c28e8983a614e5858d4b84a6cfe479adb1312 (patch)
treedefa6adae65173bd27bee5503425274dd4d7809d /app/resource_bundle.h
parentdb32931f6800e91b0d6fa5ddf7c21d4b39d98c3f (diff)
downloadchromium_src-0d3c28e8983a614e5858d4b84a6cfe479adb1312.zip
chromium_src-0d3c28e8983a614e5858d4b84a6cfe479adb1312.tar.gz
chromium_src-0d3c28e8983a614e5858d4b84a6cfe479adb1312.tar.bz2
Fix up extension badge text drawing.
Fall abck to the system default font if the preferred font isn't available. Also, only create the SkPaint struct once, not on every paint. Also, make some more things const. BUG=25693 TEST=badge still looks good, that crash goes away Review URL: http://codereview.chromium.org/341045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30631 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/resource_bundle.h')
-rw-r--r--app/resource_bundle.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/resource_bundle.h b/app/resource_bundle.h
index f2fdb58..a59cbfd 100644
--- a/app/resource_bundle.h
+++ b/app/resource_bundle.h
@@ -113,7 +113,7 @@ class ResourceBundle {
string16 GetLocalizedString(int message_id);
// Returns the font for the specified style.
- gfx::Font GetFont(FontStyle style);
+ const gfx::Font& GetFont(FontStyle style);
#if defined(OS_WIN)
// Loads and returns an icon from the theme dll.