Fix 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 Review URL: http://codereview.chromium.org/8520026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110334 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment