diff options
Diffstat (limited to 'chrome_frame/external_tab.cc')
-rw-r--r-- | chrome_frame/external_tab.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome_frame/external_tab.cc b/chrome_frame/external_tab.cc index ca402d9..0d2609f 100644 --- a/chrome_frame/external_tab.cc +++ b/chrome_frame/external_tab.cc @@ -3,7 +3,7 @@ // found in the LICENSE file. #include "chrome_frame/external_tab.h" -#include "base/singleton.h" +#include "base/lazy_instance.h" #include "base/tracked.h" #include "base/task.h" #include "base/waitable_event.h" @@ -14,7 +14,8 @@ DISABLE_RUNNABLE_METHOD_REFCOUNT(ExternalTabProxy); DISABLE_RUNNABLE_METHOD_REFCOUNT(UIDelegate); namespace { - Singleton<ChromeProxyFactory> g_proxy_factory; + static base::LazyInstance<ChromeProxyFactory> g_proxy_factory( + base::LINKER_INITIALIZED); struct UserDataHolder : public SyncMessageContext { explicit UserDataHolder(void* p) : data(p) {} @@ -24,7 +25,7 @@ namespace { ExternalTabProxy::ExternalTabProxy() : state_(NONE), tab_(0), tab_wnd_(NULL), - chrome_wnd_(NULL), proxy_factory_(g_proxy_factory.get()), proxy_(NULL), + chrome_wnd_(NULL), proxy_factory_(g_proxy_factory.Pointer()), proxy_(NULL), ui_delegate_(NULL) { } |