summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/status_area_view.cc
diff options
context:
space:
mode:
authorchocobo@google.com <chocobo@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-15 23:19:36 +0000
committerchocobo@google.com <chocobo@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-15 23:19:36 +0000
commit9b90411688764bb782a7451551d30226073b6bc0 (patch)
treeb72f6725ae1f2b405f8e687b911f5da0924cd7b5 /chrome/browser/chromeos/status_area_view.cc
parent90d982ed2e80b16dbdc409031faf7fc3d439949a (diff)
downloadchromium_src-9b90411688764bb782a7451551d30226073b6bc0.zip
chromium_src-9b90411688764bb782a7451551d30226073b6bc0.tar.gz
chromium_src-9b90411688764bb782a7451551d30226073b6bc0.tar.bz2
Fix status area to use icognito mode background when in icognito mode.
BUG=24970 TEST=none Review URL: http://codereview.chromium.org/274070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29208 0039d316-1c4b-4281-b951-d872f2087c98
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,