| Index: tools/clang/plugins/tests/weak_ptr_factory.h
|
| diff --git a/base/process/memory_stubs.cc b/tools/clang/plugins/tests/weak_ptr_factory.h
|
| similarity index 52%
|
| copy from base/process/memory_stubs.cc
|
| copy to tools/clang/plugins/tests/weak_ptr_factory.h
|
| index b06c7d5f2b53ff8d26f1128298f66e544bb23c3a..7aebfc53839cc7a089a3fdd8e1cfb42839a4af68 100644
|
| --- a/base/process/memory_stubs.cc
|
| +++ b/tools/clang/plugins/tests/weak_ptr_factory.h
|
| @@ -2,18 +2,17 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "base/process/memory.h"
|
| +#ifndef WEAK_PTR_FACTORY_H_
|
| +#define WEAK_PTR_FACTORY_H_
|
|
|
| namespace base {
|
|
|
| -void EnableTerminationOnOutOfMemory() {
|
| -}
|
| -
|
| -void EnableTerminationOnHeapCorruption() {
|
| -}
|
| -
|
| -bool AdjustOOMScore(ProcessId process, int score) {
|
| - return false;
|
| -}
|
| +template <typename T>
|
| +class WeakPtrFactory {
|
| + public:
|
| + explicit WeakPtrFactory(T*) {}
|
| +};
|
|
|
| } // namespace base
|
| +
|
| +#endif // WEAK_PTR_FACTORY_H_
|
|
|