Index: ash/wm/custom_frame_view_ash.cc |
diff --git a/ash/wm/custom_frame_view_ash.cc b/ash/wm/custom_frame_view_ash.cc |
index 5aa784cf3ea38f082bdf7a332fef91bc748c56a1..1d1d341f6be10afaabe66a70ea37a28bc2d8ddd2 100644 |
--- a/ash/wm/custom_frame_view_ash.cc |
+++ b/ash/wm/custom_frame_view_ash.cc |
@@ -156,8 +156,10 @@ int CustomFrameViewAsh::NonClientTopBorderHeight() const { |
// static |
void CustomFrameViewAsh::InitClass() { |
static bool initialized = false; |
- if (!initialized) |
+ if (!initialized) { |
title_font_ = new gfx::Font(views::NativeWidgetAura::GetWindowTitleFont()); |
+ initialized = true; |
+ } |
} |
} // namespace internal |