DescriptionFix statics in NativeTheme*::instance() to avoid destruction post main
Intentionally leaks NativeTheme* singletons to avoid destructor firing after main. Memory bots will need suppressions for this.
Avoids clang error:
time make -k -j16 compositor_unittests
CXX(target) out/Debug/obj.target/ui/ui/gfx/native_theme_aura.o
ui/gfx/native_theme_aura.cc:27:32: error: declaration requires an exit-time destructor [-Werror,-Wexit-time-destructors]
static const NativeThemeAura s_native_theme;
BUG=none
TEST=compiles under clang -Wexit-time-destructors
R=jamescook@chromium.org, ben@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110334
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|