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

Side by Side Diff: ui/gfx/native_theme_gtk.cc

Issue 8495043: Turn on -Wexit-time-destructors for ui and content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gfx/native_theme_gtk.h" 5 #include "ui/gfx/native_theme_gtk.h"
6 6
7 namespace gfx { 7 namespace gfx {
8 8
9 // static 9 // static
10 const NativeTheme* NativeTheme::instance() { 10 const NativeTheme* NativeTheme::instance() {
11 return NativeThemeGtk::instance(); 11 return NativeThemeGtk::instance();
12 } 12 }
13 13
14 // static 14 // static
15 const NativeThemeGtk* NativeThemeGtk::instance() { 15 const NativeThemeGtk* NativeThemeGtk::instance() {
16 static const NativeThemeGtk s_native_theme; 16 CR_DEFINE_STATIC_LOCAL(NativeThemeGtk, s_native_theme, ());
17 return &s_native_theme; 17 return &s_native_theme;
18 } 18 }
19 19
20 NativeThemeGtk::NativeThemeGtk() { 20 NativeThemeGtk::NativeThemeGtk() {
21 } 21 }
22 22
23 NativeThemeGtk::~NativeThemeGtk() { 23 NativeThemeGtk::~NativeThemeGtk() {
24 } 24 }
25 25
26 } // namespace gfx 26 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698