summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 21:23:00 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 21:23:00 +0000
commit763f848ffbd28b22a6c2aa32bf28184d9c17b366 (patch)
treec6e662f3b95f1b52866c840a96d8ce02a75032cd /base
parent314feb0bc9a98d6ea9cfb576485bf82dd07ffe84 (diff)
downloadchromium_src-763f848ffbd28b22a6c2aa32bf28184d9c17b366.zip
chromium_src-763f848ffbd28b22a6c2aa32bf28184d9c17b366.tar.gz
chromium_src-763f848ffbd28b22a6c2aa32bf28184d9c17b366.tar.bz2
FBTF: Another big ctor/dtor cleanup found by automated tools.
(Shaves ~2MB off Linux Debug .a files) BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3563004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/field_trial.cc2
-rw-r--r--base/field_trial.h2
-rw-r--r--base/global_descriptors_posix.cc4
-rw-r--r--base/global_descriptors_posix.h3
4 files changed, 9 insertions, 2 deletions
diff --git a/base/field_trial.cc b/base/field_trial.cc
index 3575001..a3e6ac6 100644
--- a/base/field_trial.cc
+++ b/base/field_trial.cc
@@ -64,6 +64,8 @@ std::string FieldTrial::MakeName(const std::string& name_prefix,
return big_string.append(FieldTrialList::FindFullName(trial_name));
}
+FieldTrial::~FieldTrial() {}
+
//------------------------------------------------------------------------------
// FieldTrialList methods and members.
diff --git a/base/field_trial.h b/base/field_trial.h
index b1f0a07..deee838 100644
--- a/base/field_trial.h
+++ b/base/field_trial.h
@@ -119,7 +119,7 @@ class FieldTrial : public base::RefCounted<FieldTrial> {
private:
friend class base::RefCounted<FieldTrial>;
- ~FieldTrial() {}
+ virtual ~FieldTrial();
// The name of the field trial, as can be found via the FieldTrialList.
// This is empty of the trial is not in the experiment.
diff --git a/base/global_descriptors_posix.cc b/base/global_descriptors_posix.cc
index 869d196..8c853a0 100644
--- a/base/global_descriptors_posix.cc
+++ b/base/global_descriptors_posix.cc
@@ -11,6 +11,10 @@
namespace base {
+GlobalDescriptors::GlobalDescriptors() {}
+
+GlobalDescriptors::~GlobalDescriptors() {}
+
int GlobalDescriptors::MaybeGet(Key key) const {
for (Mapping::const_iterator
i = descriptors_.begin(); i != descriptors_.end(); ++i) {
diff --git a/base/global_descriptors_posix.h b/base/global_descriptors_posix.h
index c37dae6..8ea743e 100644
--- a/base/global_descriptors_posix.h
+++ b/base/global_descriptors_posix.h
@@ -56,7 +56,8 @@ class GlobalDescriptors {
}
private:
- GlobalDescriptors() { }
+ GlobalDescriptors();
+ ~GlobalDescriptors();
friend struct DefaultSingletonTraits<GlobalDescriptors>;
Mapping descriptors_;