Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3359)

Unified Diff: chrome/common/extensions/docs/examples/api/speechInput/basic/background.js

Issue 11745015: Update references to the extension messaging APIs to point to the "runtime" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/examples/api/speechInput/basic/background.js
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 3093b6cdaede853e7d7202cc767c3a2e914cc87c..bd9b99afd3f31fbea84532f69dd6636a298b7113 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();

Powered by Google App Engine
This is Rietveld 408576698