Index: chrome/test/data/extensions/api_test/tabs/connect/echo.js |
diff --git a/chrome/test/data/extensions/api_test/tabs/connect/echo.js b/chrome/test/data/extensions/api_test/tabs/connect/echo.js |
index 1cab30cd38db8115ef8be5356434a1c41849c576..c2a49285ddbb3a7ef0cc41dd1770efd9b2e11d6b 100644 |
--- a/chrome/test/data/extensions/api_test/tabs/connect/echo.js |
+++ b/chrome/test/data/extensions/api_test/tabs/connect/echo.js |
@@ -1,8 +1,12 @@ |
+// 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. |
+ |
// Content script that echoes back all messages. |
// Posting a message with "GET" returns the name and # of connections opened. |
var connections = 0; |
-chrome.extension.onConnect.addListener(function onConnect(port) { |
+chrome.runtime.onConnect.addListener(function onConnect(port) { |
connections++; |
port.onMessage.addListener(function onMessage(msg) { |
if (msg == "GET") { |