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

Unified Diff: chrome/browser/resources/plugins.js

Issue 2571903003: Mojo JS bindings: switch most usage of "connection"/"router" module to "bindings". (Closed)
Patch Set: remove the changes to web_ui_mojo.js which seemed to cause flakiness. Created 4 years 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/browser/resources/plugins.js
diff --git a/chrome/browser/resources/plugins.js b/chrome/browser/resources/plugins.js
index bffd6bb456c5062ac1c06882de56f851c0cdb975..f57f1332130728c4b0e4b325b782d8c1aa28d23f 100644
--- a/chrome/browser/resources/plugins.js
+++ b/chrome/browser/resources/plugins.js
@@ -228,18 +228,15 @@ var browserProxy = null;
function initializeProxies() {
return importModules([
'mojo/public/js/bindings',
- 'mojo/public/js/connection',
'chrome/browser/ui/webui/plugins/plugins.mojom',
'content/public/renderer/frame_interfaces',
]).then(function(modules) {
var bindings = modules[0];
- var connection = modules[1];
- var pluginsMojom = modules[2];
- var frameInterfaces = modules[3];
+ var pluginsMojom = modules[1];
+ var frameInterfaces = modules[2];
- browserProxy = connection.bindHandleToProxy(
- frameInterfaces.getInterface(pluginsMojom.PluginsPageHandler.name),
- pluginsMojom.PluginsPageHandler);
+ browserProxy = new pluginsMojom.PluginsPageHandlerPtr(
+ frameInterfaces.getInterface(pluginsMojom.PluginsPageHandler.name));
/** @constructor */
var PluginsPageImpl = function() {
« no previous file with comments | « chrome/browser/resources/omnibox/omnibox.js ('k') | chrome/browser/resources/usb_internals/usb_internals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698