summaryrefslogtreecommitdiffstats
path: root/chrome/common/profiling.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-16 00:12:42 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-16 00:12:42 +0000
commit054c80163856843954da96c1f05fec158a40c2c4 (patch)
tree2762b746fe7462db73d1e3910ea5da563b130840 /chrome/common/profiling.cc
parentb1719466a057a1f4bbab43934aeb9e8df5dc59a4 (diff)
downloadchromium_src-054c80163856843954da96c1f05fec158a40c2c4.zip
chromium_src-054c80163856843954da96c1f05fec158a40c2c4.tar.gz
chromium_src-054c80163856843954da96c1f05fec158a40c2c4.tar.bz2
chrome: Remove 10 exit time destructors and 2 static initializers.
version_extension_ in MetricsLogBase was only used in the MetricsLog subclass, so move it to there. BUG=101600,94925 TEST=none Review URL: http://codereview.chromium.org/8468018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/profiling.cc')
-rw-r--r--chrome/common/profiling.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/profiling.cc b/chrome/common/profiling.cc
index 9422a90..946f54f 100644
--- a/chrome/common/profiling.cc
+++ b/chrome/common/profiling.cc
@@ -17,7 +17,7 @@
namespace {
std::string GetProfileName() {
static const char kDefaultProfileName[] = "chrome-profile-{type}-{pid}";
- static std::string profile_name;
+ CR_DEFINE_STATIC_LOCAL(std::string, profile_name, ());
if (profile_name.empty()) {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();