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

Unified Diff: chrome/renderer/resources/extensions/app_runtime_custom_bindings.js

Issue 14912009: Support getEntryId for entries passed to apps as launch data. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/resources/extensions/app_runtime_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/app_runtime_custom_bindings.js b/chrome/renderer/resources/extensions/app_runtime_custom_bindings.js
index 0f3a0f784daa5cc6874c6d2ae5c3b2a72a5fb9d7..a490c02677552bfac596483464b2968bffd2e4ba 100644
--- a/chrome/renderer/resources/extensions/app_runtime_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/app_runtime_custom_bindings.js
@@ -74,6 +74,7 @@ chromeHidden.Event.registerArgumentMassager('app.runtime.onLaunched',
forEach(launchData.items, function(i, item) {
var fs = GetIsolatedFileSystem(item.fileSystemId);
fs.root.getFile(item.baseName, {}, function(fileEntry) {
+ entryIdManager.registerEntry(item.entryId, fileEntry);
itemLoaded(null, { entry: fileEntry, type: item.mimeType });
}, function(fileError) {
itemLoaded(fileError);

Powered by Google App Engine
This is Rietveld 408576698