summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/examples/api/debugger
diff options
context:
space:
mode:
authorkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-08 15:10:31 +0000
committerkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-08 15:10:31 +0000
commit754ea8b7d01365edefd3a06a293879739011679e (patch)
treeca5e51130ebfc51785248f7b7009d4d3ea46fe28 /chrome/common/extensions/docs/examples/api/debugger
parent978a0d53f38c292a21843d3902d25b90c00bd376 (diff)
downloadchromium_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.js4
-rw-r--r--chrome/common/extensions/docs/examples/api/debugger/pause-resume/background.js4
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;
}