Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1335)

Unified Diff: chrome/browser/resources/new_new_tab.js

Issue 242107: Add histograms that track how long it takes to open the new tab page. (Closed)
Patch Set: comments Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/new_new_tab.html ('k') | chrome/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/new_new_tab.js
diff --git a/chrome/browser/resources/new_new_tab.js b/chrome/browser/resources/new_new_tab.js
index 10c9eb97092ba8225eef50b109624ccfc596a30d..add6213dc4e944cd1e63e99afbfc3053d949cd43 100644
--- a/chrome/browser/resources/new_new_tab.js
+++ b/chrome/browser/resources/new_new_tab.js
@@ -1328,11 +1328,12 @@ $('list-checkbox').addEventListener('change',
$('list-checkbox').addEventListener('keydown',
getCheckboxHandler(Section.LIST));
-window.addEventListener('load', bind(logEvent, global, 'onload fired'));
+window.addEventListener('load', bind(logEvent, global, 'NewTab.Onload', true));
window.addEventListener('load', onDataLoaded);
+
window.addEventListener('resize', handleWindowResize);
-document.addEventListener('DOMContentLoaded', bind(logEvent, global,
- 'domcontentloaded fired'));
+document.addEventListener('DOMContentLoaded',
+ bind(logEvent, global, 'NewTab.DOMContentLoaded', 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
« no previous file with comments | « chrome/browser/resources/new_new_tab.html ('k') | chrome/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698