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

Unified Diff: base/field_trial.h

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/field_trial.h
===================================================================
--- base/field_trial.h (revision 30973)
+++ base/field_trial.h (working copy)
@@ -116,6 +116,10 @@
const std::string& trial_name);
private:
+ friend class base::RefCounted<FieldTrial>;
+
+ virtual ~FieldTrial() {}
M-A Ruel 2009/11/05 20:31:28 why virtual?
jam 2009/11/05 21:52:37 Done.
+
// The name of the field trial, as can be found via the FieldTrialList.
// This is empty of the trial is not in the experiment.
const std::string name_;

Powered by Google App Engine
This is Rietveld 408576698