summaryrefslogtreecommitdiffstats
path: root/webkit/port
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-09 17:41:23 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-09 17:41:23 +0000
commit8ef98f0890e8ffbb4096efc517dd9310306e9c21 (patch)
treecba91ee2c62cd78bedfc343ccb0e800dae01341e /webkit/port
parentd06897cd499b0ac6048f669cc3dd78d350237094 (diff)
downloadchromium_src-8ef98f0890e8ffbb4096efc517dd9310306e9c21.zip
chromium_src-8ef98f0890e8ffbb4096efc517dd9310306e9c21.tar.gz
chromium_src-8ef98f0890e8ffbb4096efc517dd9310306e9c21.tar.bz2
Remove the stats counter calls for NPObject counts. This code is used in the
plugin process which should not be using ChromiumBridge. I could try to find another way to implement these stats counters if they are really valuable. Otherwise, it is just simpler to remove them. Ultimately, I don't think our code in the plugin process should be relying on WebKit code, but that is more work to implement. R=mbelshe Review URL: http://codereview.chromium.org/39346 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11252 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r--webkit/port/bindings/v8/npruntime.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/webkit/port/bindings/v8/npruntime.cpp b/webkit/port/bindings/v8/npruntime.cpp
index f95d621..1ecb68c 100644
--- a/webkit/port/bindings/v8/npruntime.cpp
+++ b/webkit/port/bindings/v8/npruntime.cpp
@@ -32,7 +32,6 @@
#include <v8.h>
#include "bindings/npruntime.h"
-#include "ChromiumBridge.h"
#include "NPV8Object.h"
#include "npruntime_priv.h"
#include "V8NPObject.h"
@@ -186,8 +185,6 @@ void NPN_ReleaseVariantValue(NPVariant* variant) {
variant->type = NPVariantType_Void;
}
-static const char* kCounterNPObjects = "NPObjects";
-
NPObject *NPN_CreateObject(NPP npp, NPClass* aClass) {
ASSERT(aClass);
@@ -200,8 +197,6 @@ NPObject *NPN_CreateObject(NPP npp, NPClass* aClass) {
obj->_class = aClass;
obj->referenceCount = 1;
-
- WebCore::ChromiumBridge::incrementStatsCounter(kCounterNPObjects);
return obj;
}
@@ -226,8 +221,6 @@ void _NPN_DeallocateObject(NPObject *obj) {
ASSERT(obj->referenceCount >= 0);
if (obj) {
- WebCore::ChromiumBridge::decrementStatsCounter(kCounterNPObjects);
-
// NPObjects that remain in pure C++ may never have wrappers.
// Hence, if it's not already alive, don't unregister it.
// If it is alive, unregister it as the *last* thing we do