Chromium Code Reviews| Index: base/memory/ref_counted.h |
| diff --git a/base/memory/ref_counted.h b/base/memory/ref_counted.h |
| index 960c8a28453122a5e00a2cb72d5f420e7b642f15..3957bf82463f88264297eb6ffe846a0d92f9a784 100644 |
| --- a/base/memory/ref_counted.h |
| +++ b/base/memory/ref_counted.h |
| @@ -224,6 +224,9 @@ class RefCountedData |
| // |
| // class MyFoo : public RefCounted<MyFoo> { |
| // ... |
| +// private: |
| +// friend class RefCounted<MyFoo>; // allow destruction by RefCounted<> |
|
danakj
2016/11/30 00:00:08
Capitalize and period for each comment.
Thiemo Nagel
2016/11/30 10:41:24
Done.
|
| +// ~MyFoo(); // destructor must be private/protected |
| // }; |
| // |
| // void some_function() { |