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 8896b7b165027b344cabd3b496e096c7ecf91472..08c35964af9af3a7fcf912cb2b0bf6c05a024c73 100644 |
--- a/chrome/browser/resources/apps_debugger/js/items_list.js |
+++ b/chrome/browser/resources/apps_debugger/js/items_list.js |
@@ -434,8 +434,10 @@ cr.define('apps_dev_tool', function() { |
* @param {string} id Item ID. |
*/ |
ItemsList.launchApp = function(id) { |
- chrome.management.launchApp(id); |
- ItemsList.loadItemsInfo(); |
+ chrome.management.launchApp(id, function() { |
+ // There is a delay in generation of background page for the app. |
+ setTimeout(ItemsList.loadItemsInfo, 1000); |
+ }); |
}; |
return { |