summaryrefslogtreecommitdiffstats
path: root/base/stats_table.cc
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-04 19:38:30 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-04 19:38:30 +0000
commita3153c47d3b5308e7a55c0924a0baa1a6e02dcd0 (patch)
treeb37c85641aef8df14c732e4b187444e040a11555 /base/stats_table.cc
parenta93e517bfe25f11b2c4cc7d69f386424b93a2efa (diff)
downloadchromium_src-a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0.zip
chromium_src-a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0.tar.gz
chromium_src-a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0.tar.bz2
This CL adds macro used to track the creation and destruction
of HWNDs, in an attempt to detect potential double-delete. A double-delete of a HWND might be responsible for the crasher http://crbug.com/4714 Note: this CL was previously committed and reverted because it broke the sandbox integration module. Review URL: http://codereview.chromium.org/21032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9161 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/stats_table.cc')
-rw-r--r--base/stats_table.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/base/stats_table.cc b/base/stats_table.cc
index 31570b5..a812b92 100644
--- a/base/stats_table.cc
+++ b/base/stats_table.cc
@@ -8,7 +8,9 @@
#include "base/platform_thread.h"
#include "base/process_util.h"
#include "base/shared_memory.h"
+#include "base/string_piece.h"
#include "base/string_util.h"
+#include "base/sys_string_conversions.h"
#include "base/thread_local_storage.h"
#if defined(OS_POSIX)
@@ -167,8 +169,8 @@ StatsTablePrivate* StatsTablePrivate::New(const std::string& name,
int max_threads,
int max_counters) {
scoped_ptr<StatsTablePrivate> priv(new StatsTablePrivate());
-
- if (!priv->shared_memory_.Create(UTF8ToWide(name), false, true, size))
+ if (!priv->shared_memory_.Create(base::SysUTF8ToWide(name), false, true,
+ size))
return NULL;
if (!priv->shared_memory_.Map(size))
return NULL;