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

Unified Diff: chrome/common/extensions/docs/examples/extensions/talking_alarm_clock/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/extensions/talking_alarm_clock/background.js
diff --git a/chrome/common/extensions/docs/examples/extensions/talking_alarm_clock/background.js b/chrome/common/extensions/docs/examples/extensions/talking_alarm_clock/background.js
index ae94ff81ebd2f86664d1bd805ba32622944273cf..38c5917d99307c5348b3931ef42f63ab4fd0b069 100644
--- a/chrome/common/extensions/docs/examples/extensions/talking_alarm_clock/background.js
+++ b/chrome/common/extensions/docs/examples/extensions/talking_alarm_clock/background.js
@@ -114,7 +114,7 @@ function onLocalStorageChange() {
function initBackground() {
window.addEventListener('storage', onLocalStorageChange, false);
- chrome.extension.onConnect.addListener(function(popupPort) {
+ chrome.runtime.onConnect.addListener(function(popupPort) {
port = popupPort;
port.onDisconnect.addListener(function() {
port = null;

Powered by Google App Engine
This is Rietveld 408576698