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

Unified Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc

Issue 7084022: views: Paint frame of maximized incognito app & popup windows with incognito color. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
===================================================================
--- chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (revision 87200)
+++ chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (working copy)
@@ -736,8 +736,15 @@
// Never theme app and popup windows.
if (!browser_view_->IsBrowserTypeNormal()) {
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- theme_frame = rb.GetBitmapNamed(ShouldPaintAsActive() ?
- IDR_FRAME : IDR_FRAME_INACTIVE);
+ bool is_incognito = browser_view_->IsOffTheRecord();
+ if (ShouldPaintAsActive()) {
+ theme_frame = rb.GetBitmapNamed(is_incognito ?
+ IDR_THEME_FRAME_INCOGNITO : IDR_FRAME);
+ } else {
+ theme_frame = rb.GetBitmapNamed(is_incognito ?
+ IDR_THEME_FRAME_INCOGNITO_INACTIVE :
+ IDR_FRAME_INACTIVE);
+ }
} else if (!browser_view_->IsOffTheRecord()) {
theme_frame = tp->GetBitmapNamed(ShouldPaintAsActive() ?
IDR_THEME_FRAME : IDR_THEME_FRAME_INACTIVE);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698