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

Unified Diff: tools/perf/measurements/page_cycler.js

Issue 148093016: [Telemetry] Clean up some page cycler cruft now that idb has moved out. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: reupload Created 6 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/page_cycler.js
diff --git a/tools/perf/measurements/page_cycler.js b/tools/perf/measurements/page_cycler.js
index 73ded1e2ee5a1e681ebe3d3e2bb2c9b41f06c462..46708c66b455120e8be8403f45b1e3f6014324f5 100644
--- a/tools/perf/measurements/page_cycler.js
+++ b/tools/perf/measurements/page_cycler.js
@@ -33,19 +33,12 @@ function __onbeforeunload() {
// The function |__onload| is used by the DHTML tests.
window.__onload = function() {
- // window.storeCreated is used by the Indexed DB tests.
- if ((!__install_onload_handler || window.storeCreated) &&
- !performance.timing.loadEventEnd)
+ if (!__install_onload_handler && !performance.timing.loadEventEnd)
return;
var unused = document.body.offsetHeight; // force layout
- testComplete(window.performance.now());
-};
-
-// The function |testComplete| is used by the Indexed DB tests.
-window.testComplete = function(time) {
cmumford 2014/02/05 16:28:50 I do see plenty other users of testComplete in the
- window.__pc_load_time = time;
+ window.__pc_load_time = window.performance.now();
};
// The function |__eval_later| now is only used by the DHTML tests.
@@ -58,4 +51,4 @@ if (window.parent == window) { // Ignore subframes.
addEventListener("load", __onload);
addEventListener("beforeunload", __onbeforeunload);
}
-})();
+})();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698