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

Issue 8520026: Fix statics in NativeTheme*::instance() to avoid destruction post main (Closed)

Created:
9 years, 1 month ago by dhollowa
Modified:
9 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110334

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -6 lines) Patch
M ui/gfx/native_theme_android.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/gfx/native_theme_aura.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ui/gfx/native_theme_chromeos.cc View 2 chunks +1 line, -1 line 0 comments Download
M ui/gfx/native_theme_gtk.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/native_theme_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
dhollowa
9 years, 1 month ago (2011-11-15 23:45:02 UTC) #1
James Cook
LGTM, but please let Ben comment too. Thanks for fixing the include-what-you-use of basictypes.h.
9 years, 1 month ago (2011-11-16 00:28:46 UTC) #2
Ben Goodger (Google)
lgtm
9 years, 1 month ago (2011-11-16 16:36:38 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dhollowa@chromium.org/8520026/1
9 years, 1 month ago (2011-11-16 16:41:05 UTC) #4
commit-bot: I haz the power
Try job failure for 8520026-1 (retry) on mac_rel for step "webkit_unit_tests". It's a second try, ...
9 years, 1 month ago (2011-11-16 18:06:48 UTC) #5
Nico
9 years, 1 month ago (2011-11-16 19:27:20 UTC) #6
Thanks! The tracking bug for this is http://crbug.com/101600 .

basictypes.h is included transitively in almost every file already, so I usually
didn't bother listing it explicitly.

Powered by Google App Engine
This is Rietveld 408576698