diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-21 21:27:45 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-21 21:27:45 +0000 |
commit | 778cb2f49af834951ab17e95c9143c313e5bf1a2 (patch) | |
tree | 8d3c27c95cb8dcd0fd43576fe2a5d85793c11279 /webkit/glue/chromium_bridge_impl.cc | |
parent | a0dde12f2e4f92f1a59885c45cfecd10dbfdfdfd (diff) | |
download | chromium_src-778cb2f49af834951ab17e95c9143c313e5bf1a2.zip chromium_src-778cb2f49af834951ab17e95c9143c313e5bf1a2.tar.gz chromium_src-778cb2f49af834951ab17e95c9143c313e5bf1a2.tar.bz2 |
Rollback "Remove use of wide characters in stats table identifiers."
This reverts commit r5847.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5850 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, 3 insertions, 8 deletions
diff --git a/webkit/glue/chromium_bridge_impl.cc b/webkit/glue/chromium_bridge_impl.cc index 9745a76..515e2e8 100644 --- a/webkit/glue/chromium_bridge_impl.cc +++ b/webkit/glue/chromium_bridge_impl.cc @@ -445,22 +445,17 @@ void ChromiumBridge::stopSharedTimer() { // StatsCounters -------------------------------------------------------------- -void ChromiumBridge::decrementStatsCounter(const char* name) { +void ChromiumBridge::decrementStatsCounter(const wchar_t* name) { StatsCounter(name).Decrement(); } -void ChromiumBridge::incrementStatsCounter(const char* name) { +void ChromiumBridge::incrementStatsCounter(const wchar_t* 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(CounterFunction); + v8::V8::SetCounterFunction(StatsTable::FindLocation); } #endif |