diff options
author | hashimoto <hashimoto@chromium.org> | 2016-01-06 22:24:06 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-07 06:25:19 +0000 |
commit | 07cb2d82cac69d50db01846bc087179e1914dfb9 (patch) | |
tree | 4fd2b36365c7e85a968b6426a74dafc8f69852b0 /base | |
parent | a5b15d7c2cf869cbac55fcba63c479c089b04634 (diff) | |
download | chromium_src-07cb2d82cac69d50db01846bc087179e1914dfb9.zip chromium_src-07cb2d82cac69d50db01846bc087179e1914dfb9.tar.gz chromium_src-07cb2d82cac69d50db01846bc087179e1914dfb9.tar.bz2 |
base: Update comment about access control of ref-counted classes' dtor
This comment was introduced originally in https://codereview.chromium.org/360042.
In some cases, the dtor needs to be protected, instead of private, to
allow inherited classes to call the base dtor (e.g. net::IOBuffer).
BUG=None
Review URL: https://codereview.chromium.org/1567593002
Cr-Commit-Position: refs/heads/master@{#368023}
Diffstat (limited to 'base')
-rw-r--r-- | base/memory/ref_counted.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/memory/ref_counted.h b/base/memory/ref_counted.h index e569c08..a1c1269 100644 --- a/base/memory/ref_counted.h +++ b/base/memory/ref_counted.h @@ -118,7 +118,7 @@ class BASE_EXPORT RefCountedThreadSafeBase { // ~MyFoo(); // }; // -// You should always make your destructor private, to avoid any code deleting +// You should always make your destructor non-public, to avoid any code deleting // the object accidently while there are references to it. template <class T> class RefCounted : public subtle::RefCountedBase { |