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

Unified Diff: chrome/browser/extensions/api/app_runtime/app_runtime_api.cc

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/browser/extensions/api/app_runtime/app_runtime_api.cc
diff --git a/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc b/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc
index 2cbdbd7ae99abb3c101b7dc1fbc272a719db6d1b..146d609d5499b4d9aee2c2a24dd46bbc436c299e 100644
--- a/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc
+++ b/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc
@@ -84,14 +84,15 @@ void AppEventRouter::DispatchOnRestartedEvent(
void AppEventRouter::DispatchOnLaunchedEventWithFileEntry(
Profile* profile, const Extension* extension,
const std::string& handler_id, const std::string& mime_type,
- const std::string& file_system_id, const std::string& base_name) {
+ const extensions::app_file_handler_util::GrantedFileEntry& file_entry) {
scoped_ptr<ListValue> args(new ListValue());
DictionaryValue* launch_data = new DictionaryValue();
launch_data->SetString("id", handler_id);
DictionaryValue* launch_item = new DictionaryValue;
- launch_item->SetString("fileSystemId", file_system_id);
- launch_item->SetString("baseName", base_name);
+ launch_item->SetString("fileSystemId", file_entry.filesystem_id);
+ launch_item->SetString("baseName", file_entry.registered_name);
launch_item->SetString("mimeType", mime_type);
+ launch_item->SetString("entryId", file_entry.id);
ListValue* items = new ListValue;
items->Append(launch_item);
launch_data->Set("items", items);
« no previous file with comments | « chrome/browser/extensions/api/app_runtime/app_runtime_api.h ('k') | chrome/browser/extensions/platform_app_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698