Searched refs:SetSingletonAllowed (Results 1 – 3 of 3) sorted by relevance
142 ScopedAllowSingleton() { previous_value_ = SetSingletonAllowed(true); } in ScopedAllowSingleton()143 ~ScopedAllowSingleton() { SetSingletonAllowed(previous_value_); } in ~ScopedAllowSingleton()165 static bool SetSingletonAllowed(bool allowed);182 static bool SetSingletonAllowed(bool /* allowed */) { return true; } in SetSingletonAllowed() function
48 bool ThreadRestrictions::SetSingletonAllowed(bool allowed) { in SetSingletonAllowed() function in base::ThreadRestrictions
57 base::ThreadRestrictions::SetSingletonAllowed(false); in ThreadFunc()