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

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: Minor indent fix 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
« no previous file with comments | « no previous file | ui/gfx/win/window_impl.cc » ('j') | ui/gfx/win/window_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..348253671f4f6fa0c42bf9c447d0ecc01e5ddbc2 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 unload the classes WndProc.
+ static void UnregisterClassesAtExit();
+
// Initializes the Window with a parent and an initial desired size.
void Init(HWND parent, const gfx::Rect& bounds);
« no previous file with comments | « no previous file | ui/gfx/win/window_impl.cc » ('j') | ui/gfx/win/window_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698