Home
last modified time | relevance | path

Searched refs:CallbackSingletonWithLeakTrait (Results 1 – 1 of 1) sorted by relevance

/external/libchrome/base/memory/
Dsingleton_unittest.cc89 class CallbackSingletonWithLeakTrait : public CallbackSingleton { class
91 struct Trait : public CallbackTrait<CallbackSingletonWithLeakTrait> {
95 CallbackSingletonWithLeakTrait() : CallbackSingleton() { } in CallbackSingletonWithLeakTrait() function in base::__anon95a3c0160111::CallbackSingletonWithLeakTrait
97 static CallbackSingletonWithLeakTrait* GetInstance() { in GetInstance()
98 return Singleton<CallbackSingletonWithLeakTrait, Trait>::get(); in GetInstance()
142 CallbackSingletonWithLeakTrait::GetInstance()->callback_ = CallOnQuit; in SingletonLeak()
146 return &CallbackSingletonWithLeakTrait::GetInstance()->callback_; in GetLeakySingleton()
150 DefaultSingletonTraits<CallbackSingletonWithLeakTrait>::Delete( in DeleteLeakySingleton()
151 CallbackSingletonWithLeakTrait::GetInstance()); in DeleteLeakySingleton()