From 9b90411688764bb782a7451551d30226073b6bc0 Mon Sep 17 00:00:00 2001 From: "chocobo@google.com" Date: Thu, 15 Oct 2009 23:19:36 +0000 Subject: 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 --- chrome/browser/chromeos/status_area_view.cc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'chrome/browser/chromeos/status_area_view.cc') 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, -- cgit v1.1