diff options
author | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-27 18:16:06 +0000 |
---|---|---|
committer | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-27 18:16:06 +0000 |
commit | 54e3dfa2e76af401751b676e6fa150499734e9e6 (patch) | |
tree | 9b0487732aeaaa36491be79936aa044b47ab8b49 /base/metrics | |
parent | 71572873eb78084971b4d1bdd6560f876dc2fada (diff) | |
download | chromium_src-54e3dfa2e76af401751b676e6fa150499734e9e6.zip chromium_src-54e3dfa2e76af401751b676e6fa150499734e9e6.tar.gz chromium_src-54e3dfa2e76af401751b676e6fa150499734e9e6.tar.bz2 |
Fix up SharedMemory implementation so that it is more equivalent on Windows vs Posix and enforces exclusive creates.
Clean up some naming to make it clearer what size you are getting by changing max_size to created_size.
BUG=NONE
TEST=BUILD
Review URL: http://codereview.chromium.org/4034006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64097 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/metrics')
-rw-r--r-- | base/metrics/stats_table.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/metrics/stats_table.cc b/base/metrics/stats_table.cc index 98b2f57..82d6a25 100644 --- a/base/metrics/stats_table.cc +++ b/base/metrics/stats_table.cc @@ -161,7 +161,7 @@ StatsTable::Private* StatsTable::Private::New(const std::string& name, int max_threads, int max_counters) { scoped_ptr<Private> priv(new Private()); - if (!priv->shared_memory_.Create(name, false, true, size)) + if (!priv->shared_memory_.CreateNamed(name, true, size)) return NULL; if (!priv->shared_memory_.Map(size)) return NULL; |