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

Unified Diff: tools/page_cycler/common/head.js

Issue 9956045: Add Web Page Replay test to page cycler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows compile error. Created 8 years, 8 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/test/perf/page_cycler_test.cc ('k') | tools/page_cycler/common/report.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/page_cycler/common/head.js
diff --git a/tools/page_cycler/common/head.js b/tools/page_cycler/common/head.js
index f12fb24c7ccc2664f63e8b519a7fac8b6c6d0915..dddaa7ee0ac2454a0336334e0fdbc8a056ef986d 100644
--- a/tools/page_cycler/common/head.js
+++ b/tools/page_cycler/common/head.js
@@ -26,13 +26,11 @@ function __pages() { // fetch lazily
return this.data;
}
function __get_timings() {
- if (sessionStorage == null)
+ if (sessionStorage != null &&
+ sessionStorage.getItem("__pc_timings") != null) {
+ return sessionStorage["__pc_timings"];
+ } else {
return __get_cookie("__pc_timings");
- else {
- if (sessionStorage.getItem("__pc_timings") == null)
- return "";
- else
- return sessionStorage["__pc_timings"];
}
}
function __set_timings(timings) {
« no previous file with comments | « chrome/test/perf/page_cycler_test.cc ('k') | tools/page_cycler/common/report.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698