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

Unified Diff: ui/gfx/native_theme_chromeos.cc

Issue 8520026: Fix statics in NativeTheme*::instance() to avoid destruction post main (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/native_theme_aura.cc ('k') | ui/gfx/native_theme_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/native_theme_chromeos.cc
diff --git a/ui/gfx/native_theme_chromeos.cc b/ui/gfx/native_theme_chromeos.cc
index ebb5ba8d842e6e28898e2d22e777dd14f2008146..3d1b8fccbff5856c0ac421b90555f9dbc6f098f6 100644
--- a/ui/gfx/native_theme_chromeos.cc
+++ b/ui/gfx/native_theme_chromeos.cc
@@ -4,6 +4,7 @@
#include "ui/gfx/native_theme_chromeos.h"
+#include "base/basictypes.h"
#include "base/logging.h"
#include "grit/gfx_resources.h"
#include "third_party/skia/include/effects/SkGradientShader.h"
@@ -239,7 +240,6 @@ const NativeTheme* NativeTheme::instance() {
// static
const NativeThemeChromeos* NativeThemeChromeos::instance() {
- // The global NativeThemeChromeos instance.
CR_DEFINE_STATIC_LOCAL(NativeThemeChromeos, s_native_theme, ());
return &s_native_theme;
}
« no previous file with comments | « ui/gfx/native_theme_aura.cc ('k') | ui/gfx/native_theme_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698