summaryrefslogtreecommitdiffstats
path: root/content/child/npapi/plugin_lib.cc
diff options
context:
space:
mode:
authorcpu <cpu@chromium.org>2015-02-11 16:46:22 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-12 00:47:05 +0000
commit50bc7eadc783059e840b9f08588d755db3f6289a (patch)
tree01374efec1933e6d5e0253b655341f2c64ac676c /content/child/npapi/plugin_lib.cc
parent6875d4e0e4db94ab8ca1151adf316325d93c4dc5 (diff)
downloadchromium_src-50bc7eadc783059e840b9f08588d755db3f6289a.zip
chromium_src-50bc7eadc783059e840b9f08588d755db3f6289a.tar.gz
chromium_src-50bc7eadc783059e840b9f08588d755db3f6289a.tar.bz2
removing all the code related to chrome://stats
this is all broken and has been for a while. Since then, 2012 to 2013 other, sytem-specific systems have been used. Note that there is a v8 test that is using the stats table. Hoping to sort this now. BUG=149742 Review URL: https://codereview.chromium.org/899753002 Cr-Commit-Position: refs/heads/master@{#315890}
Diffstat (limited to 'content/child/npapi/plugin_lib.cc')
-rw-r--r--content/child/npapi/plugin_lib.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/content/child/npapi/plugin_lib.cc b/content/child/npapi/plugin_lib.cc
index 9df2f58..1d7ebe9 100644
--- a/content/child/npapi/plugin_lib.cc
+++ b/content/child/npapi/plugin_lib.cc
@@ -7,7 +7,6 @@
#include "base/bind.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
-#include "base/metrics/stats_counters.h"
#include "base/strings/string_util.h"
#include "content/child/npapi/plugin_host.h"
#include "content/child/npapi/plugin_instance.h"
@@ -15,9 +14,6 @@
namespace content {
-const char kPluginLibrariesLoadedCounter[] = "PluginLibrariesLoaded";
-const char kPluginInstancesActiveCounter[] = "PluginInstancesActive";
-
// A list of all the instantiated plugins.
static std::vector<scoped_refptr<PluginLib> >* g_loaded_libs;
@@ -71,7 +67,6 @@ PluginLib::PluginLib(const WebPluginInfo& info)
instance_count_(0),
skip_unload_(false),
defer_unload_(false) {
- base::StatsCounter(kPluginLibrariesLoadedCounter).Increment();
memset(static_cast<void*>(&plugin_funcs_), 0, sizeof(plugin_funcs_));
g_loaded_libs->push_back(make_scoped_refptr(this));
@@ -79,7 +74,6 @@ PluginLib::PluginLib(const WebPluginInfo& info)
}
PluginLib::~PluginLib() {
- base::StatsCounter(kPluginLibrariesLoadedCounter).Decrement();
if (saved_data_ != 0) {
// TODO - delete the savedData object here
}
@@ -151,13 +145,11 @@ void PluginLib::PreventLibraryUnload() {
PluginInstance* PluginLib::CreateInstance(const std::string& mime_type) {
PluginInstance* new_instance = new PluginInstance(this, mime_type);
instance_count_++;
- base::StatsCounter(kPluginInstancesActiveCounter).Increment();
DCHECK_NE(static_cast<PluginInstance*>(NULL), new_instance);
return new_instance;
}
void PluginLib::CloseInstance() {
- base::StatsCounter(kPluginInstancesActiveCounter).Decrement();
instance_count_--;
// If a plugin is running in its own process it will get unloaded on process
// shutdown.