diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-21 20:47:00 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-21 20:47:00 +0000 |
commit | d232c09f2584c80b6fde6b987fac32c8de57bfd7 (patch) | |
tree | 9e7601791ee5ccef2bef3bfde9e2eb85a5f095e3 /webkit/glue/chromium_bridge_impl.cc | |
parent | 76328988113b8bfc1cda9efdc266213199d413ca (diff) | |
download | chromium_src-d232c09f2584c80b6fde6b987fac32c8de57bfd7.zip chromium_src-d232c09f2584c80b6fde6b987fac32c8de57bfd7.tar.gz chromium_src-d232c09f2584c80b6fde6b987fac32c8de57bfd7.tar.bz2 |
Remove use of wide characters in stats table identifiers.
Review URL: http://codereview.chromium.org/11544
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5847 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/chromium_bridge_impl.cc')
-rw-r--r-- | webkit/glue/chromium_bridge_impl.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/webkit/glue/chromium_bridge_impl.cc b/webkit/glue/chromium_bridge_impl.cc index 515e2e8..9745a76 100644 --- a/webkit/glue/chromium_bridge_impl.cc +++ b/webkit/glue/chromium_bridge_impl.cc @@ -445,17 +445,22 @@ void ChromiumBridge::stopSharedTimer() { // StatsCounters -------------------------------------------------------------- -void ChromiumBridge::decrementStatsCounter(const wchar_t* name) { +void ChromiumBridge::decrementStatsCounter(const char* name) { StatsCounter(name).Decrement(); } -void ChromiumBridge::incrementStatsCounter(const wchar_t* name) { +void ChromiumBridge::incrementStatsCounter(const char* name) { StatsCounter(name).Increment(); } #if USE(V8) +// TODO(evanm): remove this conversion thunk once v8 supports plain char* +// counter functions. +static int* CounterFunction(const wchar_t* name) { + return StatsTable::FindLocation(WideToASCII(name).c_str()); +} void ChromiumBridge::initV8CounterFunction() { - v8::V8::SetCounterFunction(StatsTable::FindLocation); + v8::V8::SetCounterFunction(CounterFunction); } #endif |