diff options
Diffstat (limited to 'base/stats_table.cc')
-rw-r--r-- | base/stats_table.cc | 6 |
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; |