diff options
author | chase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 01:30:04 +0000 |
---|---|---|
committer | chase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 01:30:04 +0000 |
commit | 4a2e88b5a5a3025f54cde74d508cbacfcea7bf30 (patch) | |
tree | 7102d422a322a99bb2deda9fce82d5daf2d9e06f /tools | |
parent | 4efa4214727d3cc50f9ca876f843ad4b57e7c479 (diff) | |
download | chromium_src-4a2e88b5a5a3025f54cde74d508cbacfcea7bf30.zip chromium_src-4a2e88b5a5a3025f54cde74d508cbacfcea7bf30.tar.gz chromium_src-4a2e88b5a5a3025f54cde74d508cbacfcea7bf30.tar.bz2 |
Revert "Changed page_cycler to use sessionStorage instead of cookies for timing values."
This reverts r56932.
BUG=none
TEST=page_cycler_database is green
TBR=nsylvain@chromium.org
Review URL: http://codereview.chromium.org/3126032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57445 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r-- | tools/page_cycler/common/head.js | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/tools/page_cycler/common/head.js b/tools/page_cycler/common/head.js index f63a56c..1a4ddc84 100644 --- a/tools/page_cycler/common/head.js +++ b/tools/page_cycler/common/head.js @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are @@ -50,20 +50,10 @@ function __pages() { // fetch lazily return this.data; } function __get_timings() { - if (sessionStorage == null) - return __get_cookie("__pc_timings"); - else { - if (sessionStorage.getItem("__pc_timings") == null) - return ""; - else - return sessionStorage["__pc_timings"]; - } + return __get_cookie("__pc_timings"); } function __set_timings(timings) { - if (sessionStorage == null) - document.cookie = "__pc_timings=" + timings + "; path=/"; - else - sessionStorage["__pc_timings"]=timings; + document.cookie = "__pc_timings=" + timings + "; path=/"; } function __ontimeout() { var doc; @@ -84,16 +74,15 @@ function __ontimeout() { } else { doc = "../" + __pages()[__page] + "/index.html" } - + var timings = __tl; var oldTimings = __get_timings(); - if (oldTimings != "") { + if (oldTimings != "") { timings = oldTimings + "," + timings; } __set_timings(timings); - - var url = doc + "?n=" + __iterations + "&i=" + __cycle + "&p=" + __page + - "&ts=" + ts + "&td=" + __td + "&tf=" + __tf; + + var url = doc + "?n=" + __iterations + "&i=" + __cycle + "&p=" + __page + "&ts=" + ts + "&td=" + __td + "&tf=" + __tf; document.location.href = url; } function __onload() { |