diff options
author | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-08 15:10:31 +0000 |
---|---|---|
committer | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-08 15:10:31 +0000 |
commit | 754ea8b7d01365edefd3a06a293879739011679e (patch) | |
tree | ca5e51130ebfc51785248f7b7009d4d3ea46fe28 /tools/page_cycler | |
parent | 978a0d53f38c292a21843d3902d25b90c00bd376 (diff) | |
download | chromium_src-754ea8b7d01365edefd3a06a293879739011679e.zip chromium_src-754ea8b7d01365edefd3a06a293879739011679e.tar.gz chromium_src-754ea8b7d01365edefd3a06a293879739011679e.tar.bz2 |
Update references to the extension messaging APIs and lastError to point to
the "runtime" namespace rather than "extension" in docs and samples.
R=asargent@chromium.org
TBR=dgozman@chromium.org
Review URL: https://codereview.chromium.org/11745015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175527 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/page_cycler')
-rw-r--r-- | tools/page_cycler/webpagereplay/extension/background.js | 4 | ||||
-rw-r--r-- | tools/page_cycler/webpagereplay/extension/start.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/page_cycler/webpagereplay/extension/background.js b/tools/page_cycler/webpagereplay/extension/background.js index 207979e..e03c230 100644 --- a/tools/page_cycler/webpagereplay/extension/background.js +++ b/tools/page_cycler/webpagereplay/extension/background.js @@ -318,11 +318,11 @@ function Run() { sessionLoader.run(); } -chrome.extension.onConnect.addListener(function(port) { +chrome.runtime.onConnect.addListener(function(port) { port.onMessage.addListener(function(data) { if (data.message == "start") { window.benchmarkConfiguration = data.benchmark; Run() } }); -});
\ No newline at end of file +}); diff --git a/tools/page_cycler/webpagereplay/extension/start.js b/tools/page_cycler/webpagereplay/extension/start.js index 4808996..ef4ce301 100644 --- a/tools/page_cycler/webpagereplay/extension/start.js +++ b/tools/page_cycler/webpagereplay/extension/start.js @@ -71,7 +71,7 @@ function TryStart() { var reportDir = dirname(dirname(window.location.pathname)) + "/common"; config["reportUrl"] = "file://" + reportDir + "/report.html"; config["isRecordMode"] = isRecordMode; - var port = chrome.extension.connect(); + var port = chrome.runtime.connect(); port.postMessage({message: "start", benchmark: config}); console.log("sending start message: page count, " + config["pageSets"].length); |