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

Unified Diff: chrome/test/data/extensions/platform_apps/messaging/app2/background.js

Issue 14301016: Fix a couple of bugs relating to sending Tab info with chrome.runtime.connect and (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/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

Powered by Google App Engine
This is Rietveld 408576698