Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1778)

Unified Diff: base/memory/ref_counted.h

Issue 10416003: RefCounted types should not have public destructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more fix Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/net/load_timing_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/ref_counted.h
diff --git a/base/memory/ref_counted.h b/base/memory/ref_counted.h
index 64615f13dfa77fe8d2a596d2dfece7995dff11be..858ed2b196044f71109d668566b48f5f45e8be58 100644
--- a/base/memory/ref_counted.h
+++ b/base/memory/ref_counted.h
@@ -164,6 +164,10 @@ class RefCountedData : public base::RefCounted< base::RefCountedData<T> > {
RefCountedData(const T& in_value) : data(in_value) {}
T data;
+
+ private:
+ friend class base::RefCounted<base::RefCountedData<T> >;
+ ~RefCountedData() {}
};
} // namespace base
« no previous file with comments | « no previous file | chrome/browser/net/load_timing_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698