summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_shell.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools/test_shell/test_shell.h')
-rw-r--r--webkit/tools/test_shell/test_shell.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/test_shell.h b/webkit/tools/test_shell/test_shell.h
index 00c466d..c39ff27 100644
--- a/webkit/tools/test_shell/test_shell.h
+++ b/webkit/tools/test_shell/test_shell.h
@@ -33,6 +33,9 @@
#include "base/basictypes.h"
#include "base/gfx/native_widget_types.h"
+#if defined(OS_MACOSX)
+#include "base/lazy_instance.h"
+#endif
#include "base/ref_counted.h"
#include "webkit/tools/test_shell/event_sending_controller.h"
#include "webkit/tools/test_shell/layout_test_controller.h"
@@ -244,7 +247,8 @@ private:
// A set of all our windows.
static WindowList* window_list_;
#if defined(OS_MACOSX)
- static std::map<gfx::WindowHandle, TestShell *> window_map_;
+ static base::LazyInstance<std::map<gfx::WindowHandle, TestShell *> >
+ window_map_;
#endif
#if defined(OS_WIN)