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

Unified Diff: extensions/renderer/resources/runtime_custom_bindings.js

Issue 2300453002: [Extensions] Begin making Extension port initialization asynchronous (Closed)
Patch Set: Nasko's Created 4 years, 3 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 | « extensions/renderer/resources/messaging.js ('k') | extensions/renderer/runtime_custom_bindings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/resources/runtime_custom_bindings.js
diff --git a/extensions/renderer/resources/runtime_custom_bindings.js b/extensions/renderer/resources/runtime_custom_bindings.js
index 1efdadcea9b8f65362d9f75caaf293ae0f5b1e53..fb461061cd5d73e56b5e09ff7513eb7c8b01880b 100644
--- a/extensions/renderer/resources/runtime_custom_bindings.js
+++ b/extensions/renderer/resources/runtime_custom_bindings.js
@@ -8,6 +8,7 @@ var binding = require('binding').Binding.create('runtime');
var messaging = require('messaging');
var runtimeNatives = requireNative('runtime');
+var messagingNatives = requireNative('messaging_natives');
var process = requireNative('process');
var utils = require('utils');
@@ -154,8 +155,8 @@ binding.registerCustomHook(function(binding, id, contextType) {
var includeTlsChannelId =
!!(connectInfo && connectInfo.includeTlsChannelId);
- var portId = runtimeNatives.OpenChannelToExtension(targetId, name,
- includeTlsChannelId);
+ var portId = messagingNatives.OpenChannelToExtension(targetId, name,
+ includeTlsChannelId);
if (portId >= 0)
return messaging.createPort(portId, name);
});
@@ -168,7 +169,7 @@ binding.registerCustomHook(function(binding, id, contextType) {
apiFunctions.setHandleRequest('connectNative',
function(nativeAppName) {
- var portId = runtimeNatives.OpenChannelToNativeApp(nativeAppName);
+ var portId = messagingNatives.OpenChannelToNativeApp(nativeAppName);
if (portId >= 0)
return messaging.createPort(portId, '');
throw new Error('Error connecting to native app: ' + nativeAppName);
« no previous file with comments | « extensions/renderer/resources/messaging.js ('k') | extensions/renderer/runtime_custom_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698