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

Unified Diff: chrome/common/extensions/docs/examples/extensions/benchmark/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/benchmark/background.js
diff --git a/chrome/common/extensions/docs/examples/extensions/benchmark/background.js b/chrome/common/extensions/docs/examples/extensions/benchmark/background.js
index 1d11a94f361df400f965dbd75cbf2ad0e79a8ca1..06915ea29b7623eefad5bdbda256964a56ef612b 100644
--- a/chrome/common/extensions/docs/examples/extensions/benchmark/background.js
+++ b/chrome/common/extensions/docs/examples/extensions/benchmark/background.js
@@ -412,7 +412,7 @@ function Benchmark() {
};
}
-chrome.extension.onConnect.addListener(function(port) {
+chrome.runtime.onConnect.addListener(function(port) {
port.onMessage.addListener(function(data) {
if (data.message == "load") {
var benchmark = findBenchmark(data.url);

Powered by Google App Engine
This is Rietveld 408576698