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

Unified Diff: base/threading/non_thread_safe.h

Issue 10694111: RefCounted types should not have public destructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « base/memory/weak_ptr.h ('k') | chrome/browser/extensions/api/identity/identity_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/non_thread_safe.h
diff --git a/base/threading/non_thread_safe.h b/base/threading/non_thread_safe.h
index a104ae3d298391e68fdc9a80d6801a2e71d87177..74540573c1e282477d3ce90343ca979d96cbf821 100644
--- a/base/threading/non_thread_safe.h
+++ b/base/threading/non_thread_safe.h
@@ -62,11 +62,9 @@ class NonThreadSafeDoNothing {
// NonThreadSafe. For more details about when to choose one over the other, see
// the documentation for base::ThreadChecker.
#if ENABLE_NON_THREAD_SAFE
-class NonThreadSafe : public NonThreadSafeImpl {
-};
+typedef NonThreadSafeImpl NonThreadSafe;
jar (doing other things) 2012/07/09 16:51:45 Can you motivate this change? This opens a tad mor
Ryan Sleevi 2012/07/09 23:27:54 More aptly, it closes functionality, not opens it
jar (doing other things) 2012/07/09 23:33:51 SGTM (my confusion in my comment). On 2012/07/09
#else
-class NonThreadSafe : public NonThreadSafeDoNothing {
-};
+typedef NonThreadSafeDoNothing NonThreadsafe;
Ryan Sleevi 2012/07/09 23:27:54 Incidentally, my shift-key appears to be broken on
#endif // ENABLE_NON_THREAD_SAFE
#undef ENABLE_NON_THREAD_SAFE
« no previous file with comments | « base/memory/weak_ptr.h ('k') | chrome/browser/extensions/api/identity/identity_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698