Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4800)

Unified Diff: chrome/browser/chromeos/status_area_view.cc

Issue 274070: Fix status area to use icognito mode background when in icognito mode.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/compact_navigation_bar.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/status_area_view.cc
===================================================================
--- chrome/browser/chromeos/status_area_view.cc (revision 29183)
+++ chrome/browser/chromeos/status_area_view.cc (working copy)
@@ -182,11 +182,15 @@
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,
« no previous file with comments | « chrome/browser/chromeos/compact_navigation_bar.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698