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

Unified Diff: ui/gfx/win/window_impl.h

Issue 557513002: Deregister window classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add switch to control window unregistering Created 6 years, 3 months 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
Index: ui/gfx/win/window_impl.h
diff --git a/ui/gfx/win/window_impl.h b/ui/gfx/win/window_impl.h
index 8206562935ff1ca8eb6c685231a58f854c876192..b9dcb85631ed7c63fc1590f7d991f2b71ed4b88a 100644
--- a/ui/gfx/win/window_impl.h
+++ b/ui/gfx/win/window_impl.h
@@ -41,6 +41,11 @@ class GFX_EXPORT WindowImpl : public MessageMapInterface {
WindowImpl();
virtual ~WindowImpl();
+ // Causes all generated windows classes to be unregistered at exit.
+ // This can cause result in errors for tests that don't destroy all instances
+ // of windows, but is necessary if the tests uses a ShadowingAtExitManager.
Bernhard Bauer 2014/09/11 08:45:06 This comment doesn't really make sense. Calling th
DaveMoore 2014/09/12 04:27:28 Done.
+ static void SetUnregisterClassesAtExit(bool unregister_classes_at_exit);
+
// Initializes the Window with a parent and an initial desired size.
void Init(HWND parent, const gfx::Rect& bounds);

Powered by Google App Engine
This is Rietveld 408576698