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

Unified Diff: chrome/test/data/extensions/api_test/native_messaging/test.js

Issue 591463003: Remote Assistance on Chrome OS Part III - NativeMessageHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@native_messaging
Patch Set: Fix NativeMessagingBasic test on Release builds Created 6 years, 2 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
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | extensions/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/native_messaging/test.js
diff --git a/chrome/test/data/extensions/api_test/native_messaging/test.js b/chrome/test/data/extensions/api_test/native_messaging/test.js
index 408c032cc8809bf726df163d650797e06a261944..ab747a1f9f0b5370b48f2a47aaf60dc755456333 100644
--- a/chrome/test/data/extensions/api_test/native_messaging/test.js
+++ b/chrome/test/data/extensions/api_test/native_messaging/test.js
@@ -87,11 +87,8 @@ chrome.test.getConfig(function(config) {
function stopHost() {
port = chrome.extension.connectNative(appName);
- port.onMessage.addListener(function(message) {
- port.onDisconnect.addListener(chrome.test.callback(
- function() {},
- "Native host has exited."));
- });
+ port.onDisconnect.addListener(
+ chrome.test.callback(function() {}, "Native host has exited."));
// Send first message that should stop the host.
port.postMessage({ "stopHostTest": true });
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | extensions/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698