OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 'use strict'; |
| 6 |
| 7 define('main', [ |
| 8 'mojo/public/js/connection', |
| 9 'chrome/browser/ui/webui/engagement/site_engagement.mojom', |
| 10 'content/public/renderer/service_provider', |
| 11 ], function(connection, siteEngagementMojom, serviceProvider) { |
| 12 |
| 13 return function() { |
| 14 var uiHandler = connection.bindHandleToProxy( |
| 15 serviceProvider.connectToService( |
| 16 siteEngagementMojom.SiteEngagementUIHandler.name), |
| 17 siteEngagementMojom.SiteEngagementUIHandler); |
| 18 |
| 19 // Populate engagement table. |
| 20 uiHandler.getSiteEngagementInfo().then(response => { |
| 21 $('engagement-table').engagementInfo = response.info; |
| 22 }); |
| 23 }; |
| 24 }); |
OLD | NEW |