summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/examples/api/speechInput/basic/background.js
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/speechInput/basic/background.js
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/speechInput/basic/background.js')
-rw-r--r--chrome/common/extensions/docs/examples/api/speechInput/basic/background.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/extensions/docs/examples/api/speechInput/basic/background.js b/chrome/common/extensions/docs/examples/api/speechInput/basic/background.js
index 3093b6c..bd9b99a 100644
--- a/chrome/common/extensions/docs/examples/api/speechInput/basic/background.js
+++ b/chrome/common/extensions/docs/examples/api/speechInput/basic/background.js
@@ -14,9 +14,9 @@ chrome.browserAction.onClicked.addListener(function(tab) {
chrome.experimental.speechInput.isRecording(function(recording) {
if (!recording) {
chrome.experimental.speechInput.start({}, function() {
- if (chrome.extension.lastError) {
+ if (chrome.runtime.lastError) {
alert("Couldn't start speech input: " +
- chrome.extension.lastError.message);
+ chrome.runtime.lastError.message);
setStartIcon();
} else {
setStopIcon();