diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 05:12:56 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 05:12:56 +0000 |
commit | efc593a5fa03e12f555164e8670d8af028b686fc (patch) | |
tree | d54e50f9515da5499468b299576868d561324598 /chrome/common | |
parent | aa08c7a6cb05e2490eacaa5d7a925e4ff78345a6 (diff) | |
download | chromium_src-efc593a5fa03e12f555164e8670d8af028b686fc.zip chromium_src-efc593a5fa03e12f555164e8670d8af028b686fc.tar.gz chromium_src-efc593a5fa03e12f555164e8670d8af028b686fc.tar.bz2 |
Reland interval change.
Move the chromium.Interval to chrome.Interval as part of the benchmarking
extension. This means that users will need to use --enable-benchmarking
to access it. It really shouldn't be part of the exposed API.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3240001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57638 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/extensions/docs/examples/api/messaging/timer/popup.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/common/extensions/docs/examples/api/messaging/timer/popup.html b/chrome/common/extensions/docs/examples/api/messaging/timer/popup.html index ef5bed8..e20e799 100644 --- a/chrome/common/extensions/docs/examples/api/messaging/timer/popup.html +++ b/chrome/common/extensions/docs/examples/api/messaging/timer/popup.html @@ -10,6 +10,12 @@ tr { } </style> <script> +if (!chrome.benchmarking) { + alert("Warning: Looks like you forgot to run chrome with " + + " --enable-benchmarking set."); + return; +} + function setChildTextNode(elementId, text) { document.getElementById(elementId).innerText = text; } @@ -19,7 +25,7 @@ function testRequest() { setChildTextNode("resultsRequest", "running..."); chrome.tabs.getSelected(null, function(tab) { - var timer = new chromium.Interval(); + var timer = new chrome.Interval(); timer.start(); chrome.tabs.sendRequest(tab.id, {counter: 1}, function handler(response) { @@ -39,7 +45,7 @@ function testConnect() { setChildTextNode("resultsConnect", "running..."); chrome.tabs.getSelected(null, function(tab) { - var timer = new chromium.Interval(); + var timer = new chrome.Interval(); timer.start(); var port = chrome.tabs.connect(tab.id); |