Chromium Code Reviews| 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 define('main', [ | |
| 6 'mojo/public/js/bindings', | |
|
Sam McNally
2015/09/08 08:25:47
Remove.
calamity
2015/09/10 06:57:33
Done.
| |
| 7 'mojo/public/js/core', | |
|
Sam McNally
2015/09/08 08:25:47
Remove.
calamity
2015/09/10 06:57:33
Done.
| |
| 8 'mojo/public/js/connection', | |
| 9 'chrome/browser/ui/webui/engagement/site_engagement.mojom', | |
| 10 'content/public/renderer/service_provider', | |
| 11 ], function(bindings, core, connection, browser, serviceProvider) { | |
|
Sam McNally
2015/09/08 08:25:47
s/browser/siteEngagementMojom/
calamity
2015/09/10 06:57:33
Done.
| |
| 12 'use strict'; | |
|
Sam McNally
2015/09/08 08:25:47
This can go outside.
calamity
2015/09/10 06:57:33
Done.
| |
| 13 | |
| 14 return function() { | |
| 15 var browserProxy = connection.bindHandleToProxy( | |
|
Sam McNally
2015/09/08 08:25:47
How about uiHandler?
calamity
2015/09/10 06:57:33
Done.
| |
| 16 serviceProvider.connectToService( | |
| 17 browser.SiteEngagementUIHandlerMojo.name), | |
| 18 browser.SiteEngagementUIHandlerMojo); | |
| 19 | |
| 20 var pipe = core.createMessagePipe(); | |
|
Sam McNally
2015/09/08 08:25:47
Remove.
calamity
2015/09/10 06:57:33
Done.
| |
| 21 | |
| 22 // Populate engagement table. | |
| 23 browserProxy.getSiteEngagementInfo().then(function(response) { | |
|
Sam McNally
2015/09/08 08:25:47
then(response => {
calamity
2015/09/10 06:57:33
Done.
| |
| 24 $('engagement-table').engagementInfo = response.info; | |
| 25 }); | |
| 26 }; | |
| 27 }); | |
| OLD | NEW |