| Index: chrome/browser/resources/apps_debugger/js/items_list.js
|
| diff --git a/chrome/browser/resources/apps_debugger/js/items_list.js b/chrome/browser/resources/apps_debugger/js/items_list.js
|
| index 08c35964af9af3a7fcf912cb2b0bf6c05a024c73..ccc9f7c1b703bce3d402583d1baaf5721f5c1c4e 100644
|
| --- a/chrome/browser/resources/apps_debugger/js/items_list.js
|
| +++ b/chrome/browser/resources/apps_debugger/js/items_list.js
|
| @@ -276,23 +276,7 @@ cr.define('apps_dev_tool', function() {
|
| setPermissionsLink_: function(item, el) {
|
| var permissions = el.querySelector('.permissions-link');
|
| permissions.addEventListener('click', function(e) {
|
| - var permissionItem = $('permissions-item');
|
| - permissionItem.textContent = '';
|
| - chrome.management.getPermissionWarningsById(
|
| - item.id,
|
| - function(warnings) {
|
| - warnings.forEach(function(permission) {
|
| - var li = document.createElement('li');
|
| - li.textContent = permission;
|
| - permissionItem.appendChild(li);
|
| - });
|
| - AppsDevTool.showOverlay($('permissions-overlay'));
|
| - });
|
| -
|
| - $('permissions-icon').style.backgroundImage =
|
| - 'url(' + item.icon + ')';
|
| - $('permissions-title').textContent = item.name;
|
| - e.preventDefault();
|
| + chrome.developerPrivate.showPermissionsDialog(item.id);
|
| });
|
| },
|
|
|
| @@ -435,8 +419,7 @@ cr.define('apps_dev_tool', function() {
|
| */
|
| ItemsList.launchApp = function(id) {
|
| chrome.management.launchApp(id, function() {
|
| - // There is a delay in generation of background page for the app.
|
| - setTimeout(ItemsList.loadItemsInfo, 1000);
|
| + ItemsList.loadItemsInfo();
|
| });
|
| };
|
|
|
|
|