Index: chrome/browser/ui/views/frame/browser_header_painter_ash.cc |
diff --git a/chrome/browser/ui/views/frame/browser_header_painter_ash.cc b/chrome/browser/ui/views/frame/browser_header_painter_ash.cc |
index da9690d0d6f4f9587679d5bed37e604ed4c94eec..bebbaed92b3f0c617b8e595a6786a29d98b8e707 100644 |
--- a/chrome/browser/ui/views/frame/browser_header_painter_ash.cc |
+++ b/chrome/browser/ui/views/frame/browser_header_painter_ash.cc |
@@ -16,6 +16,7 @@ |
#include "chrome/browser/ui/views/frame/browser_view.h" |
#include "chrome/grit/theme_resources.h" |
#include "third_party/skia/include/core/SkCanvas.h" |
+#include "third_party/skia/include/core/SkColor.h" |
#include "third_party/skia/include/core/SkPaint.h" |
#include "third_party/skia/include/core/SkPath.h" |
#include "ui/base/material_design/material_design_controller.h" |
@@ -34,8 +35,11 @@ |
using views::Widget; |
namespace { |
+ |
// Color for the window title text. |
-const SkColor kWindowTitleTextColor = SkColorSetRGB(40, 40, 40); |
+const SkColor kNormalWindowTitleTextColor = SkColorSetRGB(40, 40, 40); |
+const SkColor kIncognitoWindowTitleTextColor = SK_ColorWHITE; |
+ |
// Duration of crossfade animation for activating and deactivating frame. |
const int kActivationCrossfadeDurationMs = 200; |
@@ -333,7 +337,8 @@ void BrowserHeaderPainterAsh::PaintTitleBar(gfx::Canvas* canvas) { |
title_bounds.set_x(view_->GetMirroredXForRect(title_bounds)); |
canvas->DrawStringRectWithFlags(frame_->widget_delegate()->GetWindowTitle(), |
BrowserFrame::GetTitleFontList(), |
- kWindowTitleTextColor, |
+ is_incognito_ ? kIncognitoWindowTitleTextColor |
+ : kNormalWindowTitleTextColor, |
title_bounds, |
gfx::Canvas::NO_SUBPIXEL_RENDERING); |
} |