From 7ab1e7d655b5207df4d23f046ca6a927da9df007 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Wed, 14 Oct 2009 23:32:01 +0000 Subject: Add histogram for how tab closing time. Did some cleanup along the way. Moved the is_showing_before_unload_dialog_ stuff from RenderViewHost to TabContents since we need that bit there as well. Review URL: http://codereview.chromium.org/274057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29063 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/resources/new_new_tab.html | 2 +- chrome/browser/resources/new_new_tab.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/browser/resources') diff --git a/chrome/browser/resources/new_new_tab.html b/chrome/browser/resources/new_new_tab.html index 258051d..e42abac 100644 --- a/chrome/browser/resources/new_new_tab.html +++ b/chrome/browser/resources/new_new_tab.html @@ -19,7 +19,7 @@ function logEvent(name, shouldLogTime) { } log.push([name, Date.now()]); } -logEvent('NewTab.ScriptStart', true); +logEvent('Tab.NewTabScriptStart', true); var global = this; diff --git a/chrome/browser/resources/new_new_tab.js b/chrome/browser/resources/new_new_tab.js index 7bf6a61..a130105 100644 --- a/chrome/browser/resources/new_new_tab.js +++ b/chrome/browser/resources/new_new_tab.js @@ -1328,12 +1328,12 @@ $('list-checkbox').addEventListener('change', $('list-checkbox').addEventListener('keydown', getCheckboxHandler(Section.LIST)); -window.addEventListener('load', bind(logEvent, global, 'NewTab.Onload', true)); +window.addEventListener('load', bind(logEvent, global, 'Tab.NewTabOnload', true)); window.addEventListener('load', onDataLoaded); window.addEventListener('resize', handleWindowResize); document.addEventListener('DOMContentLoaded', - bind(logEvent, global, 'NewTab.DOMContentLoaded', true)); + bind(logEvent, global, 'Tab.NewTabDOMContentLoaded', true)); // Whether or not we should send the initial 'GetSyncMessage' to the backend // depends on the value of the attribue 'syncispresent' which the backend sets -- cgit v1.1