summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 01:46:35 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 01:46:35 +0000
commit776da44598dbaac15a5030e9dff99d534ce15281 (patch)
treee3e282b31d056a05267c0e0a86492d2a02104df8 /chrome/browser/tab_contents
parent1c0228c6e74cb53f478f18e9fc30938be38d25fb (diff)
downloadchromium_src-776da44598dbaac15a5030e9dff99d534ce15281.zip
chromium_src-776da44598dbaac15a5030e9dff99d534ce15281.tar.gz
chromium_src-776da44598dbaac15a5030e9dff99d534ce15281.tar.bz2
Revert "Add startup tests that log start script, domcontentloaded, and onload."
which failed on XP Perf (single). This reverts commit r28199. TBR=tony Review URL: http://codereview.chromium.org/265002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28209 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/tab_contents.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 325e6bc..7735a14 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -32,7 +32,6 @@
#include "chrome/browser/jsmessage_box_handler.h"
#include "chrome/browser/load_from_memory_cache_details.h"
#include "chrome/browser/load_notification_details.h"
-#include "chrome/browser/metrics/metric_event_duration_details.h"
#include "chrome/browser/modal_html_dialog_delegate.h"
#include "chrome/browser/omnibox_search_hint.h"
#include "chrome/browser/password_manager/password_manager.h"
@@ -1178,9 +1177,6 @@ void TabContents::LogNewTabTime(const std::string& event_name) {
return;
base::TimeDelta duration = base::TimeTicks::Now() - new_tab_start_time_;
- MetricEventDurationDetails details(event_name,
- static_cast<int>(duration.InMilliseconds()));
-
if (event_name == "NewTab.ScriptStart") {
UMA_HISTOGRAM_TIMES("NewTab.ScriptStart", duration);
} else if (event_name == "NewTab.DOMContentLoaded") {
@@ -1189,13 +1185,7 @@ void TabContents::LogNewTabTime(const std::string& event_name) {
UMA_HISTOGRAM_TIMES("NewTab.Onload", duration);
// The new tab page has finished loading; reset it.
new_tab_start_time_ = base::TimeTicks();
- } else {
- NOTREACHED();
}
- NotificationService::current()->Notify(
- NotificationType::METRIC_EVENT_DURATION,
- Source<TabContents>(this),
- Details<MetricEventDurationDetails>(&details));
}
// Notifies the RenderWidgetHost instance about the fact that the page is