summaryrefslogtreecommitdiffstats
path: root/chrome/browser/metrics
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 18:57:43 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 18:57:43 +0000
commit15cf713daabbba9e96ee2b9372de56941b7a46a2 (patch)
tree4ed5c9c60868c7b3310491a5bcdbebb297e990b2 /chrome/browser/metrics
parent22eeb168b8bfd02c8a4a9521a819067e25674b95 (diff)
downloadchromium_src-15cf713daabbba9e96ee2b9372de56941b7a46a2.zip
chromium_src-15cf713daabbba9e96ee2b9372de56941b7a46a2.tar.gz
chromium_src-15cf713daabbba9e96ee2b9372de56941b7a46a2.tar.bz2
Remove the UMA stats for whether the renderer was in a new desktop or not.
Review URL: http://codereview.chromium.org/391045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31921 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/metrics')
-rw-r--r--chrome/browser/metrics/metrics_log.cc11
-rw-r--r--chrome/browser/metrics/metrics_service.cc20
-rw-r--r--chrome/browser/metrics/metrics_service.h4
3 files changed, 0 insertions, 35 deletions
diff --git a/chrome/browser/metrics/metrics_log.cc b/chrome/browser/metrics/metrics_log.cc
index cef0a76..025fea8 100644
--- a/chrome/browser/metrics/metrics_log.cc
+++ b/chrome/browser/metrics/metrics_log.cc
@@ -502,17 +502,6 @@ void MetricsLog::RecordEnvironment(
}
{
- OPEN_ELEMENT_FOR_SCOPE("security");
- WriteIntAttribute("rendereronsboxdesktop",
- pref->GetInteger(prefs::kSecurityRendererOnSboxDesktop));
- pref->SetInteger(prefs::kSecurityRendererOnSboxDesktop, 0);
-
- WriteIntAttribute("rendererondefaultdesktop",
- pref->GetInteger(prefs::kSecurityRendererOnDefaultDesktop));
- pref->SetInteger(prefs::kSecurityRendererOnDefaultDesktop, 0);
- }
-
- {
OPEN_ELEMENT_FOR_SCOPE("memory");
WriteIntAttribute("mb", base::SysInfo::AmountOfPhysicalMemoryMB());
#if defined(OS_WIN)
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc
index 61def28..a16ced2 100644
--- a/chrome/browser/metrics/metrics_service.cc
+++ b/chrome/browser/metrics/metrics_service.cc
@@ -326,8 +326,6 @@ void MetricsService::RegisterPrefs(PrefService* local_state) {
local_state->RegisterIntegerPref(prefs::kStabilityIncompleteSessionEndCount,
0);
local_state->RegisterIntegerPref(prefs::kStabilityPageLoadCount, 0);
- local_state->RegisterIntegerPref(prefs::kSecurityRendererOnSboxDesktop, 0);
- local_state->RegisterIntegerPref(prefs::kSecurityRendererOnDefaultDesktop, 0);
local_state->RegisterIntegerPref(prefs::kStabilityRendererCrashCount, 0);
local_state->RegisterIntegerPref(prefs::kStabilityRendererHangCount, 0);
local_state->RegisterIntegerPref(prefs::kStabilityBreakpadRegistrationFail,
@@ -373,9 +371,6 @@ void MetricsService::DiscardOldStabilityStats(PrefService* local_state) {
local_state->SetInteger(prefs::kStabilityRendererCrashCount, 0);
local_state->SetInteger(prefs::kStabilityRendererHangCount, 0);
- local_state->SetInteger(prefs::kSecurityRendererOnSboxDesktop, 0);
- local_state->SetInteger(prefs::kSecurityRendererOnDefaultDesktop, 0);
-
local_state->SetString(prefs::kStabilityLaunchTimeSec, L"0");
local_state->SetString(prefs::kStabilityLastTimestampSec, L"0");
local_state->SetString(prefs::kStabilityUptimeSec, L"0");
@@ -482,8 +477,6 @@ void MetricsService::SetRecording(bool enabled) {
NotificationService::AllSources());
registrar_.Add(this, NotificationType::LOAD_STOP,
NotificationService::AllSources());
- registrar_.Add(this, NotificationType::RENDERER_PROCESS_IN_SBOX,
- NotificationService::AllSources());
registrar_.Add(this, NotificationType::RENDERER_PROCESS_CLOSED,
NotificationService::AllSources());
registrar_.Add(this, NotificationType::RENDERER_PROCESS_HANG,
@@ -569,10 +562,6 @@ void MetricsService::Observe(NotificationType type,
LogRendererHang();
break;
- case NotificationType::RENDERER_PROCESS_IN_SBOX:
- LogRendererInSandbox(*Details<bool>(details).ptr());
- break;
-
case NotificationType::CHILD_PROCESS_HOST_CONNECTED:
case NotificationType::CHILD_PROCESS_CRASHED:
case NotificationType::CHILD_INSTANCE_CREATED:
@@ -1668,15 +1657,6 @@ void MetricsService::LogLoadStarted() {
// might be lost due to a crash :-(.
}
-void MetricsService::LogRendererInSandbox(bool on_sandbox_desktop) {
- PrefService* prefs = g_browser_process->local_state();
- DCHECK(prefs);
- if (on_sandbox_desktop)
- IncrementPrefValue(prefs::kSecurityRendererOnSboxDesktop);
- else
- IncrementPrefValue(prefs::kSecurityRendererOnDefaultDesktop);
-}
-
void MetricsService::LogRendererCrash() {
IncrementPrefValue(prefs::kStabilityRendererCrashCount);
}
diff --git a/chrome/browser/metrics/metrics_service.h b/chrome/browser/metrics/metrics_service.h
index 7bf4911..49827ac 100644
--- a/chrome/browser/metrics/metrics_service.h
+++ b/chrome/browser/metrics/metrics_service.h
@@ -331,10 +331,6 @@ class MetricsService : public NotificationObserver,
// Records a renderer process hang.
void LogRendererHang();
- // Records the desktop security status of a renderer in the sandbox at
- // creation time.
- void LogRendererInSandbox(bool on_sandbox_desktop);
-
// Set the value in preferences for the number of bookmarks and folders
// in node. The pref key for the number of bookmarks in num_bookmarks_key and
// the pref key for number of folders in num_folders_key.