summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/status_area_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/status_area_view.cc')
-rwxr-xr-xchrome/browser/chromeos/status_area_view.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/chrome/browser/chromeos/status_area_view.cc b/chrome/browser/chromeos/status_area_view.cc
index d296d57..14ed8ac 100755
--- a/chrome/browser/chromeos/status_area_view.cc
+++ b/chrome/browser/chromeos/status_area_view.cc
@@ -182,11 +182,15 @@ void StatusAreaView::Paint(gfx::Canvas* canvas) {
ThemeProvider* theme = browser_->profile()->GetThemeProvider();
// Fill the background.
- SkBitmap* background;
- if (browser_->window()->IsActive())
- background = theme->GetBitmapNamed(IDR_THEME_FRAME);
- else
- background = theme->GetBitmapNamed(IDR_THEME_FRAME_INACTIVE);
+ int image_name;
+ if (browser_->window()->IsActive()) {
+ image_name = browser_->profile()->IsOffTheRecord() ?
+ IDR_THEME_FRAME_INCOGNITO : IDR_THEME_FRAME;
+ } else {
+ image_name = browser_->profile()->IsOffTheRecord() ?
+ IDR_THEME_FRAME_INCOGNITO_INACTIVE : IDR_THEME_FRAME_INACTIVE;
+ }
+ SkBitmap* background = theme->GetBitmapNamed(image_name);
canvas->TileImageInt(
*background,
0, kCustomFrameBackgroundVerticalOffset,