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

Unified Diff: chrome/common/extensions/docs/examples/extensions/ttsdemo/ttsdemo.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/extensions/ttsdemo/ttsdemo.js
diff --git a/chrome/common/extensions/docs/examples/extensions/ttsdemo/ttsdemo.js b/chrome/common/extensions/docs/examples/extensions/ttsdemo/ttsdemo.js
index d4e0a6f00d6fda3f37baa561584deb5ce0a239a0..85ee27d136bb70c97ee448ceb66917e34ecd07fe 100644
--- a/chrome/common/extensions/docs/examples/extensions/ttsdemo/ttsdemo.js
+++ b/chrome/common/extensions/docs/examples/extensions/ttsdemo/ttsdemo.js
@@ -86,8 +86,8 @@ function speak(str, options, highlightText) {
};
chrome.tts.speak(
str, options, function() {
- if (chrome.extension.lastError) {
- console.log('TTS Error: ' + chrome.extension.lastError.message);
+ if (chrome.runtime.lastError) {
+ console.log('TTS Error: ' + chrome.runtime.lastError.message);
}
});
ttsStatus.innerHTML = 'Busy';

Powered by Google App Engine
This is Rietveld 408576698