diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-14 23:32:01 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-14 23:32:01 +0000 |
commit | 7ab1e7d655b5207df4d23f046ca6a927da9df007 (patch) | |
tree | f3da143df1d41e42b907972fb791388bbf48a904 /chrome/browser/resources | |
parent | 8238c3e56dd70357c72e1a78100e06d0bfcdedc4 (diff) | |
download | chromium_src-7ab1e7d655b5207df4d23f046ca6a927da9df007.zip chromium_src-7ab1e7d655b5207df4d23f046ca6a927da9df007.tar.gz chromium_src-7ab1e7d655b5207df4d23f046ca6a927da9df007.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r-- | chrome/browser/resources/new_new_tab.html | 2 | ||||
-rw-r--r-- | chrome/browser/resources/new_new_tab.js | 4 |
2 files changed, 3 insertions, 3 deletions
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 |