Index: gfx/window_impl.cc |
diff --git a/gfx/window_impl.cc b/gfx/window_impl.cc |
index 74e0e20ad6a5a731c4c101dd4c6baba750519ecf..95561ff0a1d29617366149132d8ca47adf6db6f5 100644 |
--- a/gfx/window_impl.cc |
+++ b/gfx/window_impl.cc |
@@ -42,6 +42,10 @@ struct ClassInfo { |
class ClassRegistrar { |
public: |
+ static ClassRegistrar* GetInstance() { |
+ return Singleton<ClassRegistrar>::get(); |
+ } |
+ |
~ClassRegistrar() { |
for (RegisteredClasses::iterator i = registered_classes_.begin(); |
i != registered_classes_.end(); ++i) { |
@@ -198,7 +202,7 @@ LRESULT CALLBACK WindowImpl::WndProc(HWND hwnd, |
std::wstring WindowImpl::GetWindowClassName() { |
ClassInfo class_info(initial_class_style()); |
std::wstring name; |
- if (Singleton<ClassRegistrar>()->RetrieveClassName(class_info, &name)) |
+ if (ClassRegistrar::GetInstance()->RetrieveClassName(class_info, &name)) |
return name; |
// No class found, need to register one. |