| Index: chrome/test/data/extensions/platform_apps/messaging/app2/background.js
|
| diff --git a/chrome/test/data/extensions/platform_apps/messaging/app2/background.js b/chrome/test/data/extensions/platform_apps/messaging/app2/background.js
|
| index 3e5d2c053fc5af417b2d138c7543820484229328..2de9fb635c455f54859dfc45513265eaeb26ee1b 100644
|
| --- a/chrome/test/data/extensions/platform_apps/messaging/app2/background.js
|
| +++ b/chrome/test/data/extensions/platform_apps/messaging/app2/background.js
|
| @@ -2,6 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +var otherId = 'gopljlinldkejbanpggpndnjgokncaej';
|
| +
|
| chrome.runtime.onConnectExternal.addListener(function(port) {
|
| port.onMessage.addListener(function(msg) {
|
| if (msg == 'ok_to_disconnect') {
|
| @@ -13,6 +15,7 @@ chrome.runtime.onConnectExternal.addListener(function(port) {
|
| });
|
|
|
| chrome.runtime.onMessageExternal.addListener(function(msg, sender, callback) {
|
| + chrome.test.assertEq({id: otherId}, sender);
|
| if (msg == 'hello')
|
| callback('hello_response');
|
| else
|
|
|