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

Unified Diff: chrome/test/data/devtools/extensions/devtools_messaging/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/test/data/devtools/extensions/devtools_messaging/background.js
diff --git a/chrome/test/data/devtools/extensions/devtools_messaging/background.js b/chrome/test/data/devtools/extensions/devtools_messaging/background.js
index a4a449a88106cb9ae3e970aac88bbd606fc1c13d..3ed120fda05e6e2fb08b3656a1d80de079d58fde 100644
--- a/chrome/test/data/devtools/extensions/devtools_messaging/background.js
+++ b/chrome/test/data/devtools/extensions/devtools_messaging/background.js
@@ -1,3 +1,7 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
function onRequest(request, sender, callback) {
var response = JSON.stringify(request);
callback("onRequest callback: " + response);
@@ -13,4 +17,4 @@ function onConnect(port) {
port.onMessage.addListener(onMessage.bind(null, port));
}
-chrome.extension.onConnect.addListener(onConnect);
+chrome.runtime.onConnect.addListener(onConnect);

Powered by Google App Engine
This is Rietveld 408576698