summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_theme_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/browser_theme_provider.cc')
-rw-r--r--chrome/browser/browser_theme_provider.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/browser_theme_provider.cc b/chrome/browser/browser_theme_provider.cc
index 3a7dc92..b3b334d 100644
--- a/chrome/browser/browser_theme_provider.cc
+++ b/chrome/browser/browser_theme_provider.cc
@@ -275,6 +275,11 @@ SkBitmap* BrowserThemeProvider::GetBitmapNamed(int id) {
// Try to load the image from the extension.
result.reset(LoadThemeBitmap(id));
+ // If the extension doesn't provide the requested image, but has provided
+ // a custom frame, then we may be able to generate the image required.
+ if (!result.get())
+ result.reset(GenerateBitmap(id));
+
// If we still don't have an image, load it from resourcebundle.
if (!result.get())
result.reset(new SkBitmap(*rb_.GetBitmapNamed(id)));