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

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

Issue 657023008: Add a new field "source" in launchData of chrome.app.runtime.onLaunched() to trace launch source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 6 years, 1 month 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
« no previous file with comments | « extensions/common/switches.cc ('k') | extensions/shell/browser/shell_extension_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/resources/app_runtime_custom_bindings.js
diff --git a/extensions/renderer/resources/app_runtime_custom_bindings.js b/extensions/renderer/resources/app_runtime_custom_bindings.js
index 5910d6e95f3dc781b85199900b729376d9715b1a..9dbaf07b854671cd9b3db5142626ce47f26aa4e3 100644
--- a/extensions/renderer/resources/app_runtime_custom_bindings.js
+++ b/extensions/renderer/resources/app_runtime_custom_bindings.js
@@ -47,7 +47,10 @@ eventBindings.registerArgumentMassager('app.runtime.onLaunched',
$Array.push(items, item);
}
if (--numItems === 0) {
- var data = { isKioskSession: launchData.isKioskSession };
+ var data = {
+ isKioskSession: launchData.isKioskSession,
+ source: launchData.source
+ };
if (items.length !== 0) {
data.id = launchData.id;
data.items = items;
« no previous file with comments | « extensions/common/switches.cc ('k') | extensions/shell/browser/shell_extension_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698