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

Unified Diff: base/stack_container_unittest.cc

Issue 360042: First patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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
Index: base/stack_container_unittest.cc
===================================================================
--- base/stack_container_unittest.cc (revision 30973)
+++ base/stack_container_unittest.cc (working copy)
@@ -16,10 +16,14 @@
Dummy(int* alive) : alive_(alive) {
++*alive_;
}
+
+ private:
+ friend class base::RefCounted<Dummy>;
+
~Dummy() {
--*alive_;
}
- private:
+
int* const alive_;
};

Powered by Google App Engine
This is Rietveld 408576698