diff options
author | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-06 03:14:30 +0000 |
---|---|---|
committer | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-06 03:14:30 +0000 |
commit | f2ebbf06167ad4ff8cb23109b3652c8c4b7ff5f7 (patch) | |
tree | 313e8a638cf92f3106aac2abce46841897012d41 /base/sequenced_task_runner.h | |
parent | c6cc03e309be697cfa1d5ca77960ae71caac538c (diff) | |
download | chromium_src-f2ebbf06167ad4ff8cb23109b3652c8c4b7ff5f7.zip chromium_src-f2ebbf06167ad4ff8cb23109b3652c8c4b7ff5f7.tar.gz chromium_src-f2ebbf06167ad4ff8cb23109b3652c8c4b7ff5f7.tar.bz2 |
Objects that derive from RefCounted/RefCountedThreadSafe should not have public dtors.
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/9997007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sequenced_task_runner.h')
-rw-r--r-- | base/sequenced_task_runner.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/base/sequenced_task_runner.h b/base/sequenced_task_runner.h index f44b622..0db9128f 100644 --- a/base/sequenced_task_runner.h +++ b/base/sequenced_task_runner.h @@ -143,7 +143,10 @@ class BASE_EXPORT SequencedTaskRunner : public TaskRunner { this, from_here, object); } -private: + protected: + virtual ~SequencedTaskRunner() {} + + private: template <class T, class R> friend class subtle::DeleteHelperInternal; template <class T, class R> friend class subtle::ReleaseHelperInternal; |