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 /chrome/common/extensions/docs/examples/api/debugger | |
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 'chrome/common/extensions/docs/examples/api/debugger')
-rw-r--r-- | chrome/common/extensions/docs/examples/api/debugger/live-headers/background.js | 4 | ||||
-rw-r--r-- | chrome/common/extensions/docs/examples/api/debugger/pause-resume/background.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/extensions/docs/examples/api/debugger/live-headers/background.js b/chrome/common/extensions/docs/examples/api/debugger/live-headers/background.js index ad6595d..bba6065 100644 --- a/chrome/common/extensions/docs/examples/api/debugger/live-headers/background.js +++ b/chrome/common/extensions/docs/examples/api/debugger/live-headers/background.js @@ -15,8 +15,8 @@ function actionClicked(tab) { } function onAttach(tabId) { - if (chrome.extension.lastError) { - alert(chrome.extension.lastError.message); + if (chrome.runtime.lastError) { + alert(chrome.runtime.lastError.message); return; } diff --git a/chrome/common/extensions/docs/examples/api/debugger/pause-resume/background.js b/chrome/common/extensions/docs/examples/api/debugger/pause-resume/background.js index fb14127..3d6b032 100644 --- a/chrome/common/extensions/docs/examples/api/debugger/pause-resume/background.js +++ b/chrome/common/extensions/docs/examples/api/debugger/pause-resume/background.js @@ -28,8 +28,8 @@ function actionClicked(tab) { } function onAttach(debuggeeId) { - if (chrome.extension.lastError) { - alert(chrome.extension.lastError.message); + if (chrome.runtime.lastError) { + alert(chrome.runtime.lastError.message); return; } |