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

Side by Side Diff: chrome/browser/resources/engagement/site_engagement.js

Issue 1827473002: Make the process-wide ServiceRegistry available to JS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/omnibox/omnibox.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 'use strict'; 5 'use strict';
6 6
7 define('main', [ 7 define('main', [
8 'mojo/public/js/connection', 8 'mojo/public/js/connection',
9 'chrome/browser/ui/webui/engagement/site_engagement.mojom', 9 'chrome/browser/ui/webui/engagement/site_engagement.mojom',
10 'content/public/renderer/service_provider', 10 'content/public/renderer/frame_service_registry',
11 ], function(connection, siteEngagementMojom, serviceProvider) { 11 ], function(connection, siteEngagementMojom, serviceProvider) {
12 return function() { 12 return function() {
13 var uiHandler = connection.bindHandleToProxy( 13 var uiHandler = connection.bindHandleToProxy(
14 serviceProvider.connectToService( 14 serviceProvider.connectToService(
15 siteEngagementMojom.SiteEngagementUIHandler.name), 15 siteEngagementMojom.SiteEngagementUIHandler.name),
16 siteEngagementMojom.SiteEngagementUIHandler); 16 siteEngagementMojom.SiteEngagementUIHandler);
17 17
18 var engagementTableBody = $('engagement-table-body'); 18 var engagementTableBody = $('engagement-table-body');
19 var updateInterval = null; 19 var updateInterval = null;
20 var info = null; 20 var info = null;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 uiHandler.getSiteEngagementInfo().then(function(response) { 146 uiHandler.getSiteEngagementInfo().then(function(response) {
147 info = response.info; 147 info = response.info;
148 renderTable(info); 148 renderTable(info);
149 }); 149 });
150 }; 150 };
151 151
152 updateEngagementTable(); 152 updateEngagementTable();
153 updateInterval = setInterval(updateEngagementTable, 5000); 153 updateInterval = setInterval(updateEngagementTable, 5000);
154 }; 154 };
155 }); 155 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/omnibox/omnibox.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698