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

Unified Diff: ash/wm/custom_frame_view_ash.cc

Issue 9618022: Ash: Use translucent frames by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: leak in CustomFrameViewAsh Created 8 years, 9 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 | « ash/shell.cc ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ash/shell.cc ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698